04.08.2013, 01:07
I have this for when a player logs in:
And this on onplayerrequestclass:
Which gives you the dialog etc.
I login, get the message "Logged in!", yet it then displays the dialog again while going through skins.
pawn Код:
PlayerVariables[playerid] |= PLAYER_LOGGED_IN;
SendClientMessage(playerid, COLOR_GREEN, "Logged in!");
pawn Код:
if(!(PlayerVariables[playerid] & PLAYER_LOGGED_IN)) {
new Query[100];
format(Query, 100, "SELECT `username` FROM `users` WHERE `username`='%s'", PlayerName(playerid));
mysql_function_query(Gconnection, Query, true, "OnPlayerRequestLoginRegister", "d", playerid);
}
I login, get the message "Logged in!", yet it then displays the dialog again while going through skins.