stefutz101 Posted December 13, 2015 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 !
Captain Cody Posted December 13, 2015 Posted December 13, 2015 Could be an issue in an earlier part of the script.
stefutz101 Posted December 13, 2015 Author Posted December 13, 2015 Fixed . I'm so stupid. if tonumber (msg)== tostring(number) then
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