27.03.2016, 01:36
Quote:
Can You explain it more? I don't really understand, what do you mean by "doesn't change"
|
Код:
CMD:notifications(playerid,params[]) { if(IsPlayerConnected(playerid)) { new string[10000],stringg[1000]; new text[75], seen, ids; format(string, sizeof(string),"Emails\n"); mysql_format(handle, stringg, sizeof(stringg), "SELECT * FROM email WHERE playerid = %d ORDER BY id DESC",playerVariables[playerid][pInternalID]); new Cache: result12 = mysql_query (handle, stringg); for ( new i, j = cache_get_row_count ( ); i != j; ++i ) { cache_get_field_content_int(i, "id", ids); cache_get_field_content(i, "text", text); cache_get_field_content_int(i, "seen", seen); playerVariables[playerid][pSelectedMail] = ids; if(seen == 0) { format(string, sizeof(string), "%s\n[NECITIT] %s", string,text); } else { format(string, sizeof(string), "%s\n%s", string,text); } } cache_delete(result12); ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_LIST, "Emails", string, "OK", "Close"); } return 1; }
Код:
if(seen == 0)
Код:
format(string, sizeof(string), "%s\n[NECITIT] %s", string,text);
Код:
format(string, sizeof(string), "%s\n%s", string,text);