Dialog not showing
#5

Quote:
Originally Posted by czerwony03
Посмотреть сообщение
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;
}
As you see I have it set that if "seen" is equal to 0 from the database
Код:
if(seen == 0)
it will return the message
Код:
format(string, sizeof(string), "%s\n[NECITIT] %s", string,text);
else if seen is 1 it should return
Код:
format(string, sizeof(string), "%s\n%s", string,text);
. That doesn't work.
Reply


Messages In This Thread
Dialog not showing - by danielpalade - 26.03.2016, 22:21
Re: Dialog not showing - by czerwony03 - 26.03.2016, 23:11
Re: Dialog not showing - by danielpalade - 26.03.2016, 23:26
Re: Dialog not showing - by czerwony03 - 26.03.2016, 23:32
Re: Dialog not showing - by danielpalade - 27.03.2016, 01:36
Re: Dialog not showing - by AndySedeyn - 27.03.2016, 03:01

Forum Jump:


Users browsing this thread: 2 Guest(s)