03.08.2010, 13:35
hi,
I have a command which used for getting a player's stats. But, i have two commands:
"/my stats" and "/getstats [ID]".
If ID:0 types "/getstats 0" it shows an error like "use /my stats to see your own stats", and, if ID:0 types "/getstats 1" (or 2,3,4...), it still shows that error. This command works for other players, but doesn't work for id 0.
Here is the error code:
Can anyone help?
I have a command which used for getting a player's stats. But, i have two commands:
"/my stats" and "/getstats [ID]".
If ID:0 types "/getstats 0" it shows an error like "use /my stats to see your own stats", and, if ID:0 types "/getstats 1" (or 2,3,4...), it still shows that error. This command works for other players, but doesn't work for id 0.
Here is the error code:
pawn Код:
if(ReturnPlayer == playerid) return SendClientMessage(playerid, mbrightred, "Use /my stats to see your own stats.");