C:\Users\Jungle\Desktop\Новая папка\gamemodes\simple.pwn(49122) : error 010: invalid function or declaration
C:\Users\Jungle\Desktop\Новая папка\gamemodes\simple.pwn(49152) : warning 203: symbol is never used: "CMD_mostdown"
C:\Users\Jungle\Desktop\Новая папка\gamemodes\simple.pwn(49152) : warning 203: symbol is never used: "CMD_mostup"
Pawn compiler 3.10.8 Copyright (c) 1997-2006, ITB CompuPhase
Спойлер
Спойлер
C:\Users\Jungle\Desktop\Новая папка\gamemodes\simple.pwn(49152) : warning 203: symbol is never used: "CMD_mostdown"
C:\Users\Jungle\Desktop\Новая папка\gamemodes\simple.pwn(49152) : warning 203: symbol is never used: "CMD_mostup"
Pawn compiler 3.10.8 Copyright (c) 1997-2006, ITB CompuPhase
Спойлер
Код:
new Most1;
new Most2;
Most1 = CreateObject(2168,2747.34448242,-1142.90002441,21.60000038,0.00000000,0.00000000,180.00000000);
Most2 = CreateObject(2168,2747.30004883,-1262.00000000,21.60000038,0.00000000,0.00000000,0.00000000);
CMD_mostup(playerid)
{
if(PI[playerid][pAdmin] == 7) //Уровень админки
{
MoveObject(Most1,2747.34448242,-1142.90002441,22.6000002, 0.1, 55.00000000,0.00000000,180.00000000);
MoveObject(Most2,2747.30004883,-1262.00000000,22.6000002, 0.1, 55.00000000,0.00000000,0.00000000 );
SendClientMessageToAll(COLOR_LIGHTGREEN,"Осторожно мост поднимается!!!");
return 1;
}
else:
{
SendClientMessage(playerid, COLOR_LIGHTRED,"Вы не администратор");
}
}
CMD_mostdown(playerid)
{
if(PI[playerid][pAdmin] == 7) //Уровень админки
{
MoveObject(Most1,2747.34448242, -1142.90002441, 21.60000038, 0.1, 0.00000000, 0.00000000, 180.00000000 );
MoveObject(Most2,2747.30004883, -1262.00000000, 21.60000038, 0.1, 0.00000000,0.00000000,0.00000000 );
SendClientMessageToAll(COLOR_LIGHTGREEN,"Осторожно мост опускается");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED,"Вы не администратор!");
}
}
Спойлер
Последнее редактирование модератором: