Problem with slap command
#2

Since you are using zcmd, i also suggest sscanf. here's a quick view on how it works.

COMMAND: ( or CMD

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;
}
^ You don't actually need sscanf for that simple script.

Sorry for not fixing your code, but i hate reading code like that :P
Reply


Messages In This Thread
Problem with slap command - by ZamaXor - 26.10.2010, 21:16
Re: Problem with slap command - by [L3th4l] - 26.10.2010, 21:26
Re: Problem with slap command - by Crayon - 26.10.2010, 22:25
Re: Problem with slap command - by Crayon - 26.10.2010, 23:49

Forum Jump:


Users browsing this thread: 2 Guest(s)