03-24-2014, 04:35 AM
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:
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 endSimilarly, verify in the GivePoints() function that you're getting what you think you are getting.