12.10.2017, 12:39
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 ;
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.
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)
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.