/pay command help
#3

So the user above me gave you a code that should work but I thought I would mention a few specific things I noticed that are slightly problematic...

When you are using ZCMD, "u" refers to the ID of the player you're using it on.

In your code you put this:
PHP код:
if (sscanf(params"dd"otheridcash)) 
When it should instead be "ui" - i standing for integer instead of a decimal that you were using. Money in samp doesn't have decimals so it's unnecessary.

Another problem lies with this code:
PHP код:
GetPlayerName(playerid,namez,sizeof(namez)); 
You got the playerid's name and stored it in 'namez' instead of getting the 'otherid' and storing it in namez.
Reply


Messages In This Thread
/pay command help - by Swarn - 05.01.2016, 20:24
Re: /pay command help - by Lucky13 - 05.01.2016, 20:43
Re: /pay command help - by K9IsGodly - 05.01.2016, 21:17
Re: /pay command help - by Lucky13 - 05.01.2016, 21:19
Re: /pay command help - by PrO.GameR - 06.01.2016, 09:39
Re: /pay command help - by Swarn - 06.01.2016, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)