Sign in to follow this  
Followers 0
Guest Andrei_Colors

[закрыто] Как исправить ошибки

Рекомендованные сообщения



Не найдено.

4 posts in this topic

Спойлер

C:\Users\Jungle\Desktop\Íîâàÿ ïàïêà\gamemodes\simple.pwn(49123) : error 021: symbol already defined: "Itter_OnGameModeInit"
C:\Users\Jungle\Desktop\Íîâàÿ ïàïêà\gamemodes\simple.pwn(49153) : warning 203: symbol is never used: "CMD_mostdown"
C:\Users\Jungle\Desktop\Íîâàÿ ïàïêà\gamemodes\simple.pwn(49153) : warning 203: symbol is never used: "CMD_mostup"
Pawn compiler 3.10.8              Copyright (c) 1997-2006, ITB CompuPhase
  
  1 Error.

 


Вот строки

Спойлер

new Most1;
new Most2;
public OnGameModeInit
    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,"Âû íå àäìèíèñòðàòîð!");
}
}

 

 

Edited by odosenok

Share this post


Link to post
Share on other sites

Последние варнинги говорят о том, что введенные внизу CMD нигде в моде не используются, а первая говорит о том, что переменная или функция с таким названием уже создана.

Share this post


Link to post
Share on other sites
В 24.04.2020 в 01:20, Гость Andrei_Colors сказал:

CMD_

если вы хотите использовать их как команды, то нижнее подчеркивание нужно заменить на двоеточие, сейчас это просто функции

Share this post


Link to post
Share on other sites
new Most1;
new Most2;
public OnGameModeInit
    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,"Âû íå àäìèíèñòðàòîð!");
}
}

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.