Quote:
Originally Posted by Max_Coldheart
pawn Код:
YCMD:goto(playerid, o[], help) { #pragma unused help new pID; if(sscanf(o,"u", pID)) return SendClientMessage(playerid, -1,"Syntax error.Correct usage: /goto [PlayerID/Name]"); if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1,"That player is not connected"); new Float:x, Float:y, Float:z; GetPlayerPos(pID, x, y, z); SetPlayerPos(playerid, x+1, y+1, z); return 1; }
Notice: this is using YCMD and sscanf2
|
You can't just assume people are using/have the ZCMD/YCMD/DCMD and sscanf includes ...