_Shadow_
Дебютант
У меня возник такой вопрос.После того как я вставил в свой мод команду /tp
Команда сама /tp
Появляется 4 Errors
Пожалуста помогите с этим разобраться!
Команда сама /tp
Код:
if(strcmp(cmd, "/tp", true) == 0)
{
new admin[256];
GetPlayerName(playerid,admin,sizeof(admin));
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if (!tpadmin[playerid])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
tpadmin[i] = 1;
}
PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
GetPlayerPos(playerid,PX,PY,PZ);
GetPlayerFacingAngle(playerid,PANGLE);
format(string,sizeof(string),">> %s[%d]: Телепорт к админу, введите /gotp <<",admin,playerid);
SendClientMessageToAll( COLOR_YELLOW,string);
}
else if (tpadmin[playerid])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
tpadmin[i] = 0;
}
format(string,sizeof(string),">> %s[%d]: Телепорт закрыт <<",admin,playerid);
SendClientMessageToAll( COLOR_YELLOW,string);
}
}
}
if(strcmp(cmd, "/gotp", true) == 0)
{
if(tpadmin[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY,"Телепорт закрыт!");
return true;
}
PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
SetPlayerPos(playerid,PX,PY,PZ+2);
SetPlayerFacingAngle(playerid,PANGLE);
SetPlayerInterior(playerid,PlayerInfo[playerid][pInt]);
SendClientMessage(playerid, COLOR_WHITE, "Вы телепортировались");
}
Код:
E:\danger.pwn(26913) : error 017: undefined symbol "PX"
E:\danger.pwn(26914) : error 017: undefined symbol "PANGLE"
E:\danger.pwn(26937) : error 017: undefined symbol "PX"
E:\danger.pwn(26938) : error 017: undefined symbol "PANGLE"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
