13.08.2011, 02:44
pawn Код:
forward Teleport(playerid);
public Teleport(playerid)
{
new Float:x, Float:y, Float:z;
SetPlayerPos(playerid, x, y, z);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
new string[100];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "~g~Admin ~w~%s started a war ~n~ You will be teleported in ~r~10 seconds!. ", name);
GameTextForAll(string, 5000, 5 );
SetTimerEx("Teleport",10000,false,"d",playerid);
print(string);
return 1;
}
return 0;
}
pawn Код:
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\AntiHH.pwn(102) : error 017: undefined symbol "x"
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\AntiHH.pwn(109) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.