2 annoying warnings
#2

remove the return 0; after the dcmd's, the rest of the code needs to be executed, even if there ar no more commands. the only important return is the one directly before the end of the callback:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(login,5,cmdtext);
    dcmd(register,8,cmdtext);
    if (PLAYERLIST_authed[playerid]==0){
        if (udb_Exists(PlayerName(playerid))){
            SystemMsg(playerid,"You're not logged in yet.");
        }
    }
    return 1;
}
may i suggest you to use another command processor?
edit: maybe i broke your command by removing some returns, but dont hesitate to experiment with them
Reply


Messages In This Thread
2 annoying warnings - by Da' J' - 09.02.2012, 21:59
Re: 2 annoying warnings - by Babul - 09.02.2012, 22:30
Re: 2 annoying warnings - by MP2 - 09.02.2012, 23:31

Forum Jump:


Users browsing this thread: 1 Guest(s)