25.09.2014, 04:17
pawn Код:
forward OnAccountCheck(playerid);
public OnAccountCheck(playerid)
{
new rows, fields;
cache_get_data(rows, fields, mysql);
if(rows)
{
cache_get_field_content(0, "PASS", pInfo[playerid][Password], mysql, 129);
pInfo[playerid][ID] = cache_get_field_content_int(0, "ID");
printf("%s", pInfo[playerid][Password]);
ShowPlayerDialog(playerid, dlogin, DIALOG_STYLE_INPUT, "Login", "Welcome Back! Please Login.", "Login", "Quit");
}
else
{
ShowPlayerDialog(playerid, dregister, DIALOG_STYLE_INPUT, "Register", "Welcome to LSCNR, If you want to play you have to register", "Register", "Quit");
}
return 1;
IsPlayerPolice[playerid] = 0;//<<<<<<<<<<<<
return 1;
}