30.10.2015, 17:01
Your code is wrong.
PHP код:
CMD:goto(playerid, params[]) {
new toplayerid, Float:pos[3];
if(sscanf(params, "u", toplayerid)) return SendClientMessage(playerid, color_grey, "UTILIZARE:/goto <id>"); //You can do /goto <name or ID> now.
if(!IsPlayerConnected(toplayerid)) return SendClientMessage(playerid, color_grey, "Acest jucator nu este connectat");
GetPlayerPos(toplayerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
return 1;
}