#1

I've got this error:

pawn Код:
../gamemodes/OnCommand.pwn(4260) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
my code is:

pawn Код:
COMMAND:servizio(playerid, params[])
{
    if (PlayerInfo[playerid][pPlayerLogged] == 0) return SendClientMessage(playerid, COLOR_WHITE, "SERVER: Devi Loggarti per usare questo.");
    if(IsPlayerInRangeOfPoint(playerid,2.0,233.2416,125.6937,1003.2188)
    {
        if(PlayerInfo[playerid][pMember] == 7)
        {
            switch(PlayerInfo[playerid][pDuty])
            {
                case 0:
                {
                    PlayerInfo[playerid][pDuty] = 1;
                    SendClientMessage(playerid,COLOR_WHITE,"INFO: Ora sei in Servizio.");
                }
                case 1:
                {
                    PlayerInfo[playerid][pDuty] = 0;
                    SendClientMessage(playerid,COLOR_WHITE,"INFO: Ora sei fuori Servizio.");
                }
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "INFO: Non sei autorizzato ad usare questo comando.");
        }
    }
    return 1;
}
Reply
#2

As the error says, you have ")" missing on line 4260.

pawn Код:
if(IsPlayerInRangeOfPoint(playerid,2.0,233.2416,125.6937,1003.2188))
Reply
#3

Oh yes, thanks man, it works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)