18.03.2013, 15:00
I did this;
It didn't print anything.
pawn Код:
public CheckAccount(playerid)
{
print("checking...");
new rows,fields,temp[15];
cache_get_data(rows,fields,connection);
if(!rows)
{
print("i dont have account :(");
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Register","Register now","Ok","quit");
}
else
{
print("i have account :DDDDd");
cache_get_row(0,0,temp,connection);
pInfo[playerid][ID] = strval(temp);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Login","Login now","Ok","quit");
}
print("checked");
return 1;
}