callback not working, mysql
#2

Hey, Are you setting the PVar to 0 when they connect?
If you're not setting the pvar at all then it won't = 0.
So it will never make it inside ;
Код:
 
        if(GetPVarInt(playerid, "AccountExist") == 0)
Quick side note;
You shouldn't be checking if the account exists when they're trying to register, you should be checking if the account exists when they connect.

Simply putting a function inside OnPlayerConnect
To send an SQL call to look for the account name they've connected with;
If true > Go to login < If False > Go to Register.
Reply


Messages In This Thread
callback not working, mysql - by AndreiWow - 11.10.2017, 23:10
Re: callback not working, mysql - by Prokill911 - 12.10.2017, 12:39

Forum Jump:


Users browsing this thread: 2 Guest(s)