Pawno compiler stopped working - 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: Pawno compiler stopped working (
/showthread.php?tid=270647)
Pawno compiler stopped working -
BuLLeT[LTU] - 21.07.2011
pawn Код:
public OnPlayerConnect(playerid)
{
if(ServerLocked == 1)
{
if(strcmp(PlayerName2(playerid), "[_FFG_]BuLLeT", true) == 0 || strcmp(PlayerName2(playerid), "[_FFG_]Gatovas", true) == 0)
{
SendClientMessage(playerid,COLOR_MAIN,"* Server is locked *");
Kick(playerid);
return 1;
}
}
return 1;
}
When i add this, compiller crashes. What's wrong ? I add the same code to other place and it's working correctly.
Re: Pawno compiler stopped working -
System64 - 21.07.2011
try removing this return 1; after kick(Playerid)
Re: Pawno compiler stopped working -
park4bmx - 21.07.2011
Your missing out some brackets
or u mixed up the strcmp