17.07.2018, 10:40
Well when I use this function to show a dialog and then see if the code is right i get the next error
pawn Код:
FUNCTION: OnAccCodesLoad(playerid)
{
cache_get_value_int(0, code", PlayerInfo[playerid][pCode]);
SPD(playerid, D_CHECK, DIALOG_STYLE_INPUT, "Name?", "{FFFFFF}Text", "Yeah", "Aha");
return true;
}
//and this is how i use it in that dialog
new string[130];
mysql_format(SQL, string, sizeof(string), "SELECT `code` FROM `users` WHERE `name`='%e' LIMIT 1", playerid);
mysql_tquery(SQL, string, "OnAccCodesLoad", "i", playerid);