26.10.2010, 21:26
Since you are using zcmd, i also suggest sscanf. here's a quick view on how it works.
COMMAND: ( or CMD![Smiley](images/smilies/smile.png)
^ You don't actually need sscanf for that simple script.
Sorry for not fixing your code, but i hate reading code like that :P
COMMAND: ( or CMD
![Smiley](images/smilies/smile.png)
pawn Код:
CMD:slap(playerid, params[])
{
new PID, Float:X, Float:Y, Float:Z;
if(sscanf(params, "r", PID)) return /* Send Error Message < PlayerID >*/;
GetPlayerPos(PID, X, Y, Z);
SetPlayerPos(PID, X, Y, Z + 10);
return 1;
}
Sorry for not fixing your code, but i hate reading code like that :P