LucasBaker Posted May 18, 2013 Share Posted May 18, 2013 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
iPrestege Posted May 18, 2013 Share Posted May 18, 2013 You're using player at line 4>6 and player is not defined you should change it to thePlayer . Link to comment
LucasBaker Posted May 18, 2013 Author Share Posted May 18, 2013 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
iPrestege Posted May 18, 2013 Share Posted May 18, 2013 Exactly try it server side script . 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