error: 029 :) - Форум Cheat-Master.ru
  • Страница 1 из 1
  • 1
Модератор форума: [CM]OlegEhtler, Getbackthere, Phoenixxx_Czar  
error: 029 :)
Tomat Дата: Четверг, 12.05.2016, 00:06 | Сообщение # 1
Любитель
Сообщений: 42
Статус: Offline
Ну, братцы! Выручайте опять) Не пойму никак в чем прикол в этой ошибке?

Ошибка: Skrilax.pwn(47850) : error 029: invalid expression, assumed zero
Строка с ошибкой: if(PlayerInfo[params[0]][pMember] > 0)

В общем команда "Uninvite". Вот код:


Дипломат Tomat
=) Дата: Четверг, 12.05.2016, 12:26 | Сообщение # 2
Боец
Сообщений: 271
Статус: Offline
Код

CMD:uninvite(playerid, params[])
{
    switch(PlayerInfo[playerid][pMember])
    {
        case 1..4, 7, 10, 11, 16, 19, 21, 25, 8:
  {
   if(WorkingDay[playerid] == false) return SendClientMessageEx(playerid, COLOR_WHITE, Workings);
  }
    {
    if(sscanf(params, "u", params[0])) return SendClientMessageEx(playerid, COLOR_WHITE, "Aaaaeoa: /uninvite [id ea?iea]");
    else if(anti[playerid] == 1) return SendClientMessageEx(playerid, COLOR_LIGHTRED, "[Aioe-Iaeacaiea] Au neiaeee aeie ia iaeacaiea n?ieii 15 ieioo.");
    else if(params[0] == playerid) return SendClientMessageEx(playerid, COLOR_WHITE, "Naay iaaicii?ii oaieeou");
    else if(PlayerInfo[params[0]][pLeader] >= 1) return SendClientMessageEx(playerid, COLOR_GRAY, "[Ioeaea] Au oeacaee ea eeaa?a");
    else if(PlayerInfo[params[0]][pMember] == 0) return SendClientMessageEx(playerid, COLOR_GRAY, "Yoio ?aeiaae a?a?aaineee");
    else if(PlayerInfo[playerid][pLeader] <= 0 && PlayerInfo[playerid][pRank] <= PlayerInfo[params[0]][pRank]) return SendClientMessageEx(playerid, COLOR_GRAY, "Ioeaea");
    else if(!IsPlayerConnected(params[0]) || params[0] == INVALID_PLAYER_ID) return SendClientMessageEx(playerid, COLOR_GRAY, WarningConnect);
    else if(IsPlayerNPC(params[0])) return SendClientMessageEx(playerid, COLOR_GRAY, WarningConnectBOT);
    else if(PlayerInfo[params[0]][pMember] == PlayerInfo[playerid][pLeader] || PlayerInfo[params[0]][pMember] == PlayerInfo[playerid][pMember])
    {
        if(PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] >= 13
        || PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] >= 8
        || PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] >= 13
        || PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] >= 8
        || PlayerInfo[playerid][pMember] == 5 && PlayerInfo[playerid][pRank] >= 9
        || PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] >= 9
        || PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] >= 13
        //|| PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pRank] >= 14
        //|| PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] >= 14
        || PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pRank] >= 13
        || PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] >= 8
        || PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pRank] >= 8
        || PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] >= 8
        || PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pRank] >= 9
        || PlayerInfo[playerid][pMember] == 15 && PlayerInfo[playerid][pRank] >= 8
        || PlayerInfo[playerid][pMember] == 16 && PlayerInfo[playerid][pRank] >= 5
        || PlayerInfo[playerid][pMember] == 17 && PlayerInfo[playerid][pRank] >= 8
        || PlayerInfo[playerid][pMember] == 18 && PlayerInfo[playerid][pRank] >= 8
        || PlayerInfo[playerid][pMember] == 19 && PlayerInfo[playerid][pRank] >= 13
        //|| PlayerInfo[playerid][pMember] == 20 && PlayerInfo[playerid][pRank] >= 14)
        || PlayerInfo[playerid][pMember] == 21 && PlayerInfo[playerid][pRank] >= 13
        //|| PlayerInfo[playerid][pMember] == 22 && PlayerInfo[playerid][pRank] >= 13
        || PlayerInfo[playerid][pMember] == 23 && PlayerInfo[playerid][pRank] >= 10// Hitman
        || PlayerInfo[playerid][pMember] == 24 && PlayerInfo[playerid][pRank] >= 9//Street race
        || PlayerInfo[playerid][pMember] == 25 && PlayerInfo[playerid][pRank] >= 9)//SAWT
  {
   if(PlayerInfo[params[0]][pMember] > 0)
         {
             SendMes(params[0], COLOR_NEW, "%s auaiae aan ec i?aaiecaoee", PlayerInfo[playerid][pNames]);
             SendClientMessageEx(params[0], COLOR_NEW, "Au niiaa a?a?aaineee");
              SendMes(playerid, COLOR_NEW, "Au auaiaee %s ec i?aaiecaoee", PlayerInfo[params[0]][pNames]);
             if(PlayerInfo[params[0]][pMember] == Command[0] || PlayerInfo[params[0]][pMember] == Command[1])
             {
                 PlayerTextDrawHide(params[0],CaptTD[params[0]]);
             }
             if(PlayerInfo[params[0]][pMember] == Command[2] || PlayerInfo[params[0]][pMember] == Command[3])
             {
                 PlayerTextDrawHide(params[0],CaptTD[params[0]]);
             }
             PlayerInfo[params[0]][pMember] = 0;
             PlayerInfo[params[0]][pRank]   = 0;
             PlayerInfo[params[0]][pLeader] = 0;
             PlayerInfo[params[0]][pJob]    = 0;
             PlayerInfo[params[0]][pFWarn] = 0;
             SetPlayerArmourAC(params[0], 0);
             SetPlayerSkin(params[0], PlayerInfo[params[0]][pChar]);
             SetPlayerToTeamColor(params[0]);
             //SpawnPlayer(params[0]);
             antiwarn[playerid] += 8;
             if((antiwarn[playerid] >= 30) && (anti[playerid] == 0)) anti[playerid] = 1, antiwarn[playerid] = 900;
         }
         else return SendClientMessageEx(playerid, COLOR_GRAY,"Ioeaea");
     }
     else SendClientMessageEx(playerid, COLOR_GRAY, "Yoio ?aeiaae ia ninoieo a aaoae i?aaiecaoee");
    }
    return 1;
}


И вот файл pwn, чтобы не пришлось выравнивать: click


Сообщение отредактировал =) - Четверг, 12.05.2016, 12:41
Tomat Дата: Четверг, 12.05.2016, 18:53 | Сообщение # 3
Любитель
Сообщений: 42
Статус: Offline
Благодарю! Вопрос исчерпан :)

Дипломат Tomat
  • Страница 1 из 1
  • 1
Поиск: