Jump to content

Set stats problem


Recommended Posts

When I write, / not fstats Arrow 1000 stats someone could help me?

function sshop(thePlayer) 
    if (getPlayerMoney(thePlayer) >= 5000) then 
        takePlayerMoney(thePlayer, 5000) 
        setPlayerStat ( player, 71, 1000 ) 
        setPlayerStat ( player, 75, 1000 ) 
        setPlayerStat ( player, 73, 1000 ) 
        outputChatBox( "#FFFF00Você comprou Stats de TEC, Sawed-off e de Deagle.", thePlayer, 255, 255, 255, true ) 
    else 
        outputChatBox( "#FFFF00Você deve ter $5000 ou mais para comprar Stats.", thePlayer, 220, 0, 0, true ) 
    end 
end 
addCommandHandler( "fstats", sshop ) 

Link to comment
You're using player at line 4>6 and player is not defined you should change it to thePlayer .

thank then got the following right?

function sshop(thePlayer) 
    if (getPlayerMoney(thePlayer) >= 5000) then 
        takePlayerMoney(thePlayer, 5000) 
        setPlayerStat ( thePlayer, 71, 1000 ) 
        setPlayerStat ( thePlayer, 75, 1000 ) 
        setPlayerStat ( thePlayer, 73, 1000 ) 
        outputChatBox( "#FFFF00Você comprou Stats de TEC, Sawed-off e de Deagle.", thePlayer, 255, 255, 255, true ) 
    else 
        outputChatBox( "#FFFF00Você deve ter $5000 ou mais para comprar Stats.", thePlayer, 220, 0, 0, true ) 
    end 
end 
addCommandHandler( "fstats", sshop ) 

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...