SA-MP Forums Archive
Error code - 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 code (/showthread.php?tid=230759)



Error code - captainjohn - 24.02.2011

I get this error code on line 5692.

(5692) : error 026: no matching "#if..."

pawn Код:
public Spawn(playerid)
{
new PLName[24];
GetPlayerName(playerid, PLName, 24);
{
if(!strcmp(PLName, "Copolice", true))
    {
        SendClientMessageToAll(COLOR_PINK, "The server owner has joined!");
        SpawnPlayer(playerid);
        return 1;
    }
    else
    if(!strcmp(PLName, "CaptainJohn", true))
    {
        SendClientMessageToAll(COLOR_LIGHTBLUE, "CaptainJohn the SAM server scripter has joined.");
        SpawnPlayer(playerid);
        return 1;
    }
return 0;
}
}
#endif
The error is this

pawn Код:
#endif
How do I fix?


Re: Error code - admantis - 24.02.2011

Remove the line