SA-MP Forums Archive
Error line - 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)
+--- Thread: Error line (/showthread.php?tid=449419)



Error line - Biess - 08.07.2013

pawn Код:
if(fexist(file)) {
    {
    if PInfo[playerid][Banned] == 1 return SendClientMessage(playerid,red,"You are banned from this server you can appeal this at our site");
    Kick(playerid);
    }
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login Below", "Enter Your Password To Login!", "Login", "Quit");
    } else {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Register Below", "Enter A Password To Register And Play!", "Register", "Quit");
    }
    return 1;
}
C:\Users\Bichan\Desktop\UKTDM\gamemodes\UKTDM.pwn( 637) : error 001: expected token: "*then", but found "return"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Re : Error line - yusei - 08.07.2013

PHP код:
if(fexist(file)) {
    if (
PInfo[playerid][Banned] == 1



Re: Error line - Biess - 08.07.2013

How stupid that i missed that...