If and else if help..
#1

**DELETE
Reply
#2

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

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?
Reply
#4

**DELETE
Reply
#5

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

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

**DELETE
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)