09.03.2016, 12:35
this is script goto:
ocmd:goto(playerid,params[])
{
new ID;
if(sscanf(params, "u", ID)) SendClientMessage(playerid, 0xFF0000FF, "Usa: /goto [playerid]");
else if(!IsPlayerConnected(id) || id == playerid) return SendClientMessage(playerid, 0xFF0000FF, "Questo giocatore non и in game");
else
{
new Float, Float:y, Float:z;
GetPlayerPos(ID, x, y, z);
SetPlayerPos(playerid, x+1, y+1, z);
}
return 1;
}
this is error: C:\Users\Kevin11\Desktop\Nuova cartella\gamemodes\script.pwn(909) : error 017: undefined symbol "id"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
ocmd:goto(playerid,params[])
{
new ID;
if(sscanf(params, "u", ID)) SendClientMessage(playerid, 0xFF0000FF, "Usa: /goto [playerid]");
else if(!IsPlayerConnected(id) || id == playerid) return SendClientMessage(playerid, 0xFF0000FF, "Questo giocatore non и in game");
else
{
new Float, Float:y, Float:z;
GetPlayerPos(ID, x, y, z);
SetPlayerPos(playerid, x+1, y+1, z);
}
return 1;
}
this is error: C:\Users\Kevin11\Desktop\Nuova cartella\gamemodes\script.pwn(909) : error 017: undefined symbol "id"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.