Перейти к содержанию
Авторизация  
Kapral

Нужна помощь

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

Kapral

Начал переписовать команду выдачи лидерки в своем моде, и увидил при комплиировании вот это:

D:\?? ???????\??? ???\Sharp RP\gamemodes\Sharp.pwn(33182) : error 029: invalid expression, assumed zero
D:\?? ???????\??? ???\Sharp RP\gamemodes\Sharp.pwn(33182) : warning 215: expression has no effect
D:\?? ???????\??? ???\Sharp RP\gamemodes\Sharp.pwn(33182) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664     Copyright (c) 1997-2006, ITB CompuPhase




2 Errors.

Вот код команды:

if(strcmp(cmd, "/makeleader", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "???????????: /makeleader [1-???????,2-???,3-?????,4-??????,5-??? ?????,6-?????????????]");
SendClientMessage(playerid, COLOR_GRAD2, "[7-?????????,8-?????,9-???????????,10-??????? ???????,11-???????,12-??? ?.?????]");
SendClientMessage(playerid, COLOR_GRAD2, "[13-???????????,14-??? ?.?????,15-??? ???????????,16-????,17-????? ??????]");
return 1;
}
new para1;
new level;
new szName[32];
GetPlayerName(playerid,szName,32);
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(!strcmp(szName,"Iliya_Aleksandrov",true)||!strcmp(szName,"Frenk_Demons",true) || !strcmp(szName,"no",true))
if(level > 17 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "?? ???????? ????? ????? 0, ??? ?????? 17!"); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 10)
{
   if(IsPlayerConnected(para1))
   {
       if(para1 != INVALID_PLAYER_ID)
       {
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
else if(level == 0)
{
PlayerInfo[para1][pChar] = 25;
PlayerInfo[para1][pMember] = 0;
PlayerInfo[para1][pLeader] = 0;
PlayerInfo[para1][pRank] = 0;
   format(string, sizeof(string), "?? ???? ????? ? ????? ?????? ??????????????? %s. ???????? ???? ?? ???????!", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????? %s ? ????? ??????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
}
else if(level == 1)
{
PlayerInfo[para1][pChar] = 288;
PlayerInfo[para1][pLeader] = 1;
PlayerInfo[para1][pRank] = 18;
format(string, sizeof(string), "?? ???? ????????? ??????? ???? ?1 ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ???? ?1.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
} //  ???? ?1
else if(level == 2)
{
PlayerInfo[para1][pChar] = 165;
PlayerInfo[para1][pLeader] = 2;
PlayerInfo[para1][pRank] = 18;
 gTeam[para1] = 22;
 format(string, sizeof(string), "?? ???? ????????? ??????? ??? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ???.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
 } //  ???
else if(level == 3)
{ PlayerInfo[para1][pChar] = 287;
PlayerInfo[para1][pLeader] = 3;
PlayerInfo[para1][pRank] = 18;
format(string, sizeof(string), "?? ???? ????????? ??????? ????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ?????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
} //  ???
else if(level == 4)
{ PlayerInfo[para1][pChar] = 276;
PlayerInfo[para1][pLeader] = 4;
PlayerInfo[para1][pRank] = 17;
 gTeam[para1] = 22;
 format(string, sizeof(string), "?? ???? ????????? ??????? ?????? ?????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ?????? ??????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
 } //   ??????
else if(level == 5)
{ PlayerInfo[para1][pChar] = 113;
PlayerInfo[para1][pLeader] = 5;
PlayerInfo[para1][pRank] = 10;
format(string, sizeof(string), "?? ???? ????????? ??????? ??? ????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ??? ?????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
} //  ???
else if(level == 6)
{
PlayerInfo[para1][pChar] = 145;
PlayerInfo[para1][pLeader] = 6;
PlayerInfo[para1][pRank] = 14;
gTeam[para1] = 22;
format(string, sizeof(string), "?? ???? ????????? ??????? ????????????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ?????????????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
} //  ??????
else if(level == 7)
{ PlayerInfo[para1][pChar] = 188;
PlayerInfo[para1][pLeader] = 7;
PlayerInfo[para1][pRank] = 21;
format(string, sizeof(string), "?? ???? ????????? ??????? ?????????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ??????????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
} //  ?????????????
else if(level == 8)
{ PlayerInfo[para1][pChar] = 60;
PlayerInfo[para1][pLeader] = 8;
PlayerInfo[para1][pRank] = 8;
format(string, sizeof(string), "?? ???? ????????? ??????? ????????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ?????????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
} //   ?????????
else if(level == 9)
{ PlayerInfo[para1][pChar] = 171;
PlayerInfo[para1][pLeader] = 9;
PlayerInfo[para1][pRank] = 9;
format(string, sizeof(string), "?? ???? ????????? ??????? ????????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ?????????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
} //Taxi Cab Company
else if(level == 10)
{ PlayerInfo[para1][pChar] = 118;
PlayerInfo[para1][pLeader] = 10;
PlayerInfo[para1][pRank] = 12;
gTeam[para1] = 22;
format(string, sizeof(string), "?? ???? ????????? ??????? ??????? ??????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ??????? ???????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
} //  ?????????
else if(level == 11)
{ PlayerInfo[para1][pChar] = 103;
PlayerInfo[para1][pLeader] = 11;
PlayerInfo[para1][pRank] = 8;
format(string, sizeof(string), "?? ???? ????????? ??????? ???????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ????????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
} //   Street Race
else if(level == 12)
{ PlayerInfo[para1][pChar] = 279;
PlayerInfo[para1][pLeader] = 12;
PlayerInfo[para1][pRank] = 18;
format(string, sizeof(string), "?? ???? ????????? ??????? ?? ??? ?????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ?? ??? ??????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
} //  ????
else if(level == 13)
{ PlayerInfo[para1][pChar] = 57;
PlayerInfo[para1][pLeader] = 13;
PlayerInfo[para1][pRank] = 16;
format(string, sizeof(string), "?? ???? ????????? ??????? ??????????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ???????????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
}
else if(level == 14)
{ PlayerInfo[para1][pChar] = 288;
PlayerInfo[para1][pLeader] = 14;
PlayerInfo[para1][pRank] = 12;
format(string, sizeof(string), "?? ???? ????????? ??????? ?????? ?????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ?????? ??????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
} //  ?????
else if(level == 15)
{ PlayerInfo[para1][pChar] = 46;
PlayerInfo[para1][pLeader] = 15;
PlayerInfo[para1][pRank] = 9;
format(string, sizeof(string), "?? ???? ????????? ??????? ???????????? ??? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ???????????? ???.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
}
else if(level == 16)
{ PlayerInfo[para1][pChar] = 285;
PlayerInfo[para1][pLeader] = 16;
PlayerInfo[para1][pRank] = 18;
format(string, sizeof(string), "?? ???? ????????? ??????? ?? ??? ???? ?????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ?? ??? ???? ??????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
}
else if(level == 17)
{ PlayerInfo[para1][pChar] = 59;
PlayerInfo[para1][pLeader] = 17;
PlayerInfo[para1][pRank] = 4;
format(string, sizeof(string), "?? ???? ????????? ??????? ?? ?????? ??????????????? %s.", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "?? ????????? %s ??????? ?? ??????.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
}
}//not connected
}
     }
}
return true;
}

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Daniil_Gold

ОО боже...скопируйте на русской раскладе.Тут одни ироглифы не наши.

и скиньте отдельно строчки в которых ошибки.

Изменено пользователем Daniil_Gold

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Kapral

Спасибо за ответ, я решил проблемму!

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Гость
Эта тема закрыта для публикации ответов.
Авторизация  

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • Unity11
      От Unity11
      Все файлы залил на хостинг, подключил MySQL (MySQL 41-4) запускаю, пишет Unknown
      Вот server.cfg
      echo Executing Server Config... lanmode 0 rcon_password 89061184610 maxplayers 50 port 2303 bind 151.80.47.186 hostname Unity RolePlay | Тестовый сервер gamemode0 unrp filterscripts cameditor announce 1 query 1 weburl maxnpc 0 onfoot_rate 40 incar_rate 40 weapon_rate 40 stream_distance 300.0 stream_rate 1000 plugins crashdetect.so CRP.so dc_cmd.so mysql.so pawnraknet.so sscanf.so streamer.so Вот server log
      ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3e, (C)2005-2012 SA-MP Team [11:25:29] weburl = "www.sa-mp.com" (string) [11:25:29] [11:25:29] Server Plugins [11:25:29] -------------- [11:25:29] Loading plugin: crashdetect.so [11:25:29] CrashDetect v4.18.1 is OK. [11:25:29] Loaded. [11:25:29] Loading plugin: CRP.so [11:25:29] [11:25:29] ______________________________________ [11:25:29] Convert Rus To Pwn v0.1.1 loaded [11:25:29] ______________________________________ [11:25:29] By: Fro (c) Copyright <TBG> 2009-2011 [11:25:29] ______________________________________ [11:25:29] Loaded. [11:25:29] Loading plugin: dc_cmd.so [11:25:29] Daniel's CMD plugin v2.8 [11:25:29] (c) 2014 Daniel_Cortez [11:25:29] www.[ссылка стороннего ресурса].ru [11:25:29] Loaded. [11:25:29] Loading plugin: mysql.so [11:25:29] >> plugin.mysql: R41-4 successfully loaded. [11:25:29] Loaded. [11:25:29] Loading plugin: pawnraknet.so [11:25:29] Pawn.RakNet plugin v1.2.0 by urShadow loaded [11:25:29] Loaded. [11:25:29] Loading plugin: sscanf.so [11:25:29] [11:25:29] =============================== [11:25:29] sscanf plugin loaded. [11:25:29] Version: 2.8.1 [11:25:29] (c) 2012 Alex "Y_Less" Cole [11:25:29] =============================== [11:25:29] Loaded. [11:25:29] Loading plugin: streamer.so [11:25:29] *** Streamer Plugin v2.9.4 by Incognito loaded *** [11:25:29] Loaded. [11:25:29] Loaded 7 plugins. [11:25:29] [11:25:29] Filterscripts [11:25:29] --------------- [11:25:29] Loading filterscript 'cameditor.amx'... [11:25:29] -------------------------------------- [11:25:29] CamEditor by Drebin [11:25:29] -------------------------------------- [11:25:29] Loaded 1 filterscripts. [11:25:30] [debug] Run time error 19: "File or function is not found" [11:25:30] [debug] TextDrawSetPreviewModel [11:25:30] [debug] TextDrawSetPreviewRot [11:25:30] [debug] Run time error 19: "File or function is not found" [11:25:30] [debug] TextDrawSetPreviewModel [11:25:30] [debug] TextDrawSetPreviewRot [11:25:30] Script[gamemodes/unrp.amx]: Run time error 19: "File or function is not found" [11:25:30] Number of vehicle models: 0 Если кто нибудь поможет буду благодарен!
    • VycheslavDikunets
      От VycheslavDikunets
      Здравствуйте помогите исправить эту бурду.
      Ошибка в логах:
      [22:01:38] [debug] Run time error 4: "Array index out of bounds" [22:01:38] [debug] Attempted to read/write array element at index 2 in array of size 2 [22:01:38] [debug] AMX backtrace: [22:01:38] [debug] #0 005cb988 in public OnPlayerRequestClass (playerid=0, classid=0) at C:\Users\RoadTo360NoScope\Desktop\redex-rp\gamemodes\gta3rp.pwn:7616  
      Вот строки в pwn
       
    • lekek2288
      От lekek2288
      Помогите решить проблему при скачивании cr-mp 0.3E. Скачиваю с оф.сайта, пишет при загрузке, что у вас недостаточно прав. Саму игру я скачал по обычному, а клиент не качается. Пробывал скачивать с другого браузера, такая же ошибка. Даже качал торрентом, когда файл загрузился, при запуске пишет, что у вас недостаточно прав. Все остальные другие программы качаются спокойно, без ошибок. Помогите!

    • VycheslavDikunets
      От VycheslavDikunets
      Помогите исправить. где шо я пропустил? 
       
       
       

       
       
       

×

Важная информация

Мы разместили cookie-файлы на ваше устройство, чтобы помочь сделать этот сайт лучше. Вы можете изменить свои настройки cookie-файлов, или продолжить без изменения настроек.