29.01.2013, 08:04
You don't need sscanf for commands with only one parameter:
pawn Код:
CMD:san(playerid, params[]) {
new id = strval(params);
if(isnull(id)) return SendClientMessage(playerid, -1, "USAGE: /san [id]");
SetPlayerPos(id, X, Y, Z);
//SetPlayerFacingAngle(id, Angle); //Optional, but replace 'Angle' with your own float
return 1;
}