29.11.2011, 23:51
Pra usar o que o Cristhian postou vocк precisa de sscanf
pawn Код:
if(!strcmp(cmd, "/irpara"))
{
if(PlayerInfo[playerid][pAdmin] == 5000)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /irpara [X] [Y] [Z]");
new Float:X,Float:Y,Float:Z;
if(!strlen(tmp))
return SendClientMessage(playerid, COLOR_GREY, "USAGE: /irpara [X] [Y] [Z]");
X = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, COLOR_GREY, "USAGE: /irpara [X] [Y] [Z]");
Y = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, COLOR_GREY, "USAGE: /irpara [X] [Y] [Z]");
Z = strval(tmp);
SetPlayerPos(playerid, X, Y, Z);
}
return 1;
}