Jump to content

Compare msg with number


stefutz101

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...