SA-MP Forums Archive
If and else if help.. - 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: If and else if help.. (/showthread.php?tid=438153)



**DELETE** - Pettersen - 18.05.2013

**DELETE


Re: If and else if help.. - zDivine - 18.05.2013

pawn Код:
else if(fexist(UserPath(playerid)))
Should just be:
pawn Код:
if(fexist(UserPath(playerid)))



Re: If and else if help.. - Face9000 - 18.05.2013

Quote:
Originally Posted by zDivine
Посмотреть сообщение
pawn Код:
else if(fexist(UserPath(playerid)))
Should just be:
pawn Код:
if(fexist(UserPath(playerid)))
Also, move this:

pawn Код:
if(PlayerInfo[playerid][pBanned] == 1)
    {
        return Ban(playerid);
    }
After they login. Since you are banning a player after reading his account file. How you can know if is banned if you ban him first?


**DELETE** - Pettersen - 18.05.2013

**DELETE


AW: If and else if help.. - HurtLocker - 18.05.2013

Looks fine but instead of asking whether it works or not, why don't you just try it directly?


Re: If and else if help.. - Richie© - 18.05.2013

If you want to ban the player that has their account(?) banned, you must load their userdata before that.


**DELETE** - Pettersen - 19.05.2013

**DELETE