Error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error (
/showthread.php?tid=191789)
Error -
TheArcher - 20.11.2010
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;
}
Re: Error -
MadeMan - 20.11.2010
As the error says, you have ")" missing on line 4260.
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,2.0,233.2416,125.6937,1003.2188))
Re: Error -
TheArcher - 20.11.2010
Oh yes, thanks man, it works