20.11.2010, 12:56
I've got this error:
my code is:
pawn Код:
../gamemodes/OnCommand.pwn(4260) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
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;
}