01.07.2013, 16:18
Both, Register and Login
pawn Код:
if(!isnull(inputtext) && strlen(inputtext) < 64)
{
SetPVarString(playerid, "PassAuth", inputtext);
g_mysql_CreateAccount(playerid, inputtext);
ShowMainMenuDialog(playerid, 1);
SendClientMessage(playerid, COLOR_WHITE, "* Account Registered, You can login now!");
}
}
pawn Код:
if(!isnull(inputtext) && strlen(inputtext) < 64)
{
SetPVarString(playerid, "PassAuth", inputtext);
g_mysql_AccountLoginCheck(playerid);
}
else
{
ShowMainMenuDialog(playerid, 1);
}
}