Question

Спойлер

 

F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : error 001: expected token: ")", but found "["
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : error 029: invalid expression, assumed zero
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : warning 215: expression has no effect
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : error 001: expected token: ";", but found "]"
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.20150531              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

 

 

if (PlayerInfo[playerid][pWork] == 0)

Share this post


Link to post
Share on other sites

8 answers to this question

  • 1

@Ragozin 

case NARAD1:
{
    if(!response) return 1;
    if (PlayerInfo[playerid][pWork] == 0// В этой строке ошибка
    {
        PlayerInfo[playerid][pWork] = 1;
        SetPlayerSkin(playerid,16);
        SendClientMessage(playerid,COLOR_WHITE,"Ïîçäðàâëÿåì. Òåïåðü èäèòå íà {0bda51}÷åêïîèíò{FFFFFF}, ÷òîáû ñðóáèòü äåðåâî.");
        SetPlayerCheckpoint(playerid,-744.4242,-151.5473,66.944,1.0);
        SetPlayerAttachedObject(playerid,0,341,6);
    }
    else if(PlayerInfo[playerid][pWork] == 1)
    {
        PlayerInfo[playerid][pWork] = 0;
        SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
        PlayerInfo[playerid][pMoney] += AllPlayerDrova[playerid]*3;
        format(string, sizeof(string), "Âû çàêîí÷èëè ðàáîòó. Âàø çàðàáîòîê: {00FF00}$%d", AllPlayerDrova[playerid]*3);
        SendClientMessage(playerid, -1, string);
        format(string, sizeof(string), "~b~+%d", AllPlayerDrova[playerid]*3);
        GameTextForPlayer(playerid, string, 30001);
        if(IsPlayerAttachedObjectSlotUsed(playerid,0)) RemovePlayerAttachedObject(playerid,0);
        if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
        if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
        DisablePlayerCheckpoint(playerid);
        AllPlayerDrova[playerid] = 0;
        SetPlayerSpecialAction(playerid, 0);
        return true;
    }
}

 

Share this post


Link to post
Share on other sites
  • 0
4 часа назад, Ragozin сказал:
  закрыть спойлер
  закрыть спойлер

 

F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : error 001: expected token: ")", but found "["
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : error 029: invalid expression, assumed zero
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : warning 215: expression has no effect
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : error 001: expected token: ";", but found "]"
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.20150531              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

 

 


if (PlayerInfo[playerid][pWork] == 0)

полностью код и выдели строчку где ошибка

Share this post


Link to post
Share on other sites
  • 0

Здравствуйте. Выделите весь код, который связан со строкой 14228, затем пришлите его сюда.

Share this post


Link to post
Share on other sites
  • 0

@maldex Вот:

Цитата
Цитата

 

 

case NARAD1:
        {
        if(!response) return 1;
        if (PlayerInfo[playerid][pWork] == 0// В этой строке ошибка
        {
        PlayerInfo[playerid][pWork] = 1;
        SetPlayerSkin(playerid,16);
        SendClientMessage(playerid,COLOR_WHITE,"Ïîçäðàâëÿåì. Òåïåðü èäèòå íà {0bda51}÷åêïîèíò{FFFFFF}, ÷òîáû ñðóáèòü äåðåâî.");
        SetPlayerCheckpoint(playerid,-744.4242,-151.5473,66.944,1.0);
        SetPlayerAttachedObject(playerid,0,341,6);
        }
        else if(PlayerInfo[playerid][pWork] == 1)
        {
            PlayerInfo[playerid][pWork] = 0;
            SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
            PlayerInfo[playerid][pMoney] += AllPlayerDrova[playerid]*3;
            format(string, sizeof(string), "Âû çàêîí÷èëè ðàáîòó. Âàø çàðàáîòîê: {00FF00}$%d", AllPlayerDrova[playerid]*3);
            SendClientMessage(playerid, -1, string);
            format(string, sizeof(string), "~b~+%d", AllPlayerDrova[playerid]*3);
            GameTextForPlayer(playerid, string, 30001);
            if(IsPlayerAttachedObjectSlotUsed(playerid,0)) RemovePlayerAttachedObject(playerid,0);
            if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
            if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
            DisablePlayerCheckpoint(playerid);
            AllPlayerDrova[playerid] = 0;
            SetPlayerSpecialAction(playerid, 0);
            return true;
        }

 

Share this post


Link to post
Share on other sites
  • 0

@Ragozin попробуйте так.

 

Спойлер

        {
            if(!response) return 1;
            if(PlayerInfo[playerid][pWork] == 0) // В этой строке ошибка
            {
                PlayerInfo[playerid][pWork] = 1;
                SetPlayerSkin(playerid,16);
                SendClientMessage(playerid,COLOR_WHITE,"Ïîçäðàâëÿåì. Òåïåðü èäèòå íà {0bda51}÷åêïîèíò{FFFFFF}, ÷òîáû ñðóáèòü äåðåâî.");
                SetPlayerCheckpoint(playerid,-744.4242,-151.5473,66.944,1.0);
                SetPlayerAttachedObject(playerid,0,341,6);
               }

 

Share this post


Link to post
Share on other sites
  • 0

@maldex Не помогло...

Спойлер

F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : error 001: expected token: ")", but found "["
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : error 029: invalid expression, assumed zero
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : warning 215: expression has no effect
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : error 001: expected token: ";", but found "]"
F:\mod crmp\Моды\Friendly\gamemodes\new.pwn(14228) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.20150531              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

 

Share this post


Link to post
Share on other sites
  • 0

@iZiZ 

Спойлер

F:\mod crmp\Ìîäû\Friendly\gamemodes\new.pwn(14228) : error 001: expected token: ")", but found "["
F:\mod crmp\Ìîäû\Friendly\gamemodes\new.pwn(14228) : error 029: invalid expression, assumed zero
F:\mod crmp\Ìîäû\Friendly\gamemodes\new.pwn(14228) : warning 215: expression has no effect
F:\mod crmp\Ìîäû\Friendly\gamemodes\new.pwn(14228) : error 001: expected token: ";", but found "]"
F:\mod crmp\Ìîäû\Friendly\gamemodes\new.pwn(14228) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.20150531              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

if (PlayerInfo[playerid][pWork] == 0)

 

Share this post


Link to post
Share on other sites
  • 0

@Ragozin Просто скорее всего отсутствует скобка (квадратная, округлая или фигурная - хз) или точка с запятой где-то выше

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Larikze1231
      By Larikze1231
      Здраствуйте, помогите решить проблему, убрал логотип аризоны но появился красный квадрат в низу, как убрать его? буду очень благодарен если поможете!