02.06.2015, 15:02
Код:
CMD:email(playerid,params[]) { if(IsPlayerConnected(playerid)) { new string[10000],stringg[1000]; new text[75]; mysql_format(SQL, stringg, sizeof(stringg), "SELECT * FROM email WHERE playerid = %d ORDER BY id DESC",PlayerInfo[playerid][pSQLID]); new Cache: result12 = mysql_query (SQL, stringg); for ( new i, j = cache_get_row_count ( ); i != j; ++i ) { cache_get_field_content(i, "text", text); format(string, sizeof(string), "%s\n%s", string,text); } cache_delete(result12); ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_LIST, "Emails", string, "OK", "Close"); new var[ 140 ]; mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET newemail = 0 WHERE id = %d", PlayerInfo[playerid][pSQLID]); mysql_query(SQL ,var); } }
No error after compiling with pawno