29.11.2014, 17:27
I downloaded lastest plugin and changed script little bit.
But its same
Код:
public OnPlayerConnect(playerid) { new string[255]; GetPlayerName(playerid,PlayerInfo[playerid][Username],128); format(string,255,"SELECT * FROM `accounts` WHERE Username = '%s'",PlayerInfo[playerid][Username]); mysql_tquery(Mysql,string,"Check","i",playerid); return 1; } forward Check(playerid); public Check(playerid) { printf("%i",cache_get_row_count()); if(cache_get_row_count() < 1) { ShowPlayerDialog(playerid, Dialog_Register, DIALOG_STYLE_PASSWORD, "Register", "Type your password below to register.", "Register", "Quit"); } else { ShowPlayerDialog(playerid, Dialog_Login, DIALOG_STYLE_PASSWORD, "Login", "Type your password below to login.", "Login", "Quit"); } return 1; }