05.01.2016, 21:17
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:
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:
You got the playerid's name and stored it in 'namez' instead of getting the 'otherid' and storing it in namez.
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", otherid, cash))
Another problem lies with this code:
PHP код:
GetPlayerName(playerid,namez,sizeof(namez));