SA-MP Forums Archive
[HELP] off check command player exist - 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: [HELP] off check command player exist (/showthread.php?tid=504650)



[HELP] off check command player exist - Luca12 - 05.04.2014

Hello I have a small problem. I was make in some off check command if I type name which is not exist in database then it send that account doens't exist if account exist it check player. But the problem is I was first type non existing name which is not registered in database and fine it says that account doens't exist, but when I type existing name which is registered it says that acc doens't exit but exist.What I do wrong. Thanks, and here is that check.


pawn Код:
new rows,fields;
        cache_get_data(rows,fields,mysql);
        if(rows)
        {
            here is checking player if acc exist
        }
        else SCMF(playerid,0xDB023EFF,"Account %s doesn't exist in our database.",name);