Wrong password issue
#7

pawn Код:
if(numrows == 1) MySQL_Login(playerid);
if(!numrows)
{
     SendMessage(playerid, "~r~Error: ~w~Vale parool!");
     ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, ""Blue"Please log-in", ""White"Welcome back to "Red""SERVER_NAME""White"!\n"White"In order to start playing, you have to log-in!\n\n"White"Please insert "Red"your"White" password below:", "Login", "Cancel");
}
Use elseif instead of another if-clause, like that you can avoid the second if. Aswell it seems like you would like that you have TogglePlayerSpectating enabled when he's logging in and off when he successfully logged in. So put in the second if-clause TogglePlayerSpectating(playerid, 0) and in the function MySQL_Login TogglePlayerSpectating(playerid, 1), aswell check your function MySQL_Login if you're changing anything about TogglePlayerSpectating there.
Reply


Messages In This Thread
Wrong password issue - by ArmyOps - 21.02.2012, 11:57
Re: Wrong password issue - by Toreno - 21.02.2012, 12:29
Re: Wrong password issue - by ArmyOps - 21.02.2012, 12:38
Re: Wrong password issue - by Twisted_Insane - 21.02.2012, 12:47
Re: Wrong password issue - by ArmyOps - 21.02.2012, 14:33
Re: Wrong password issue - by ArmyOps - 22.02.2012, 10:37
AW: Wrong password issue - by Campbell- - 22.02.2012, 10:47
Re: Wrong password issue - by ArmyOps - 22.02.2012, 21:47

Forum Jump:


Users browsing this thread: 3 Guest(s)