Get value from another plugin?
#4
First of all, check if there's any errors or warnings in the server console. That is the first place where problems are discovered.

Second, in the GetWinner() function, add logging to verify that you are sending over the proper value:
function GetWinner()
    LOG("Function GetWinner()")
    LOG("  type(ServerData.Winner) = " .. type(ServerData.Winner))
    LOG("  ServerData.Winner = " .. ServerData.Winner)
    return ServerData.Winner
end
Similarly, verify in the GivePoints() function that you're getting what you think you are getting.
Reply
Thanks given by:


Messages In This Thread
Get value from another plugin? - by agusnat16 - 03-24-2014, 12:39 AM
RE: Get value from another plugin? - by tigerw - 03-24-2014, 12:53 AM
RE: Get value from another plugin? - by agusnat16 - 03-24-2014, 01:34 AM
RE: Get value from another plugin? - by xoft - 03-24-2014, 04:35 AM



Users browsing this thread: 1 Guest(s)