stefutz101 Posted December 13, 2015 Share Posted December 13, 2015 Hi i have a problem . I created a command : /startevent 34 1000 So who guess the number ( 34 ) win 1000 $. And i dont know why don't give me money if i write the correct answer. if event == true then -- check if event is open if msg == tostring(number) then outputChatBox(getPlayerName(player).." a ghicit numarul si a primit "..tonumber(cash), root, 255,128, 0, true) setPlayerMoney(player,getPlayerMoney(player)+tonumber(cash)) number = nil end end Thanks in advance ! Link to comment
stefutz101 Posted December 13, 2015 Author Share Posted December 13, 2015 Help , please ? ;( Link to comment
Captain Cody Posted December 13, 2015 Share Posted December 13, 2015 Could be an issue in an earlier part of the script. Link to comment
stefutz101 Posted December 13, 2015 Author Share Posted December 13, 2015 Fixed . I'm so stupid. if tonumber (msg)== tostring(number) then Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now