27.08.2010, 12:42
(
Последний раз редактировалось armyoftwo; 27.08.2010 в 14:31.
)
SOLVED!
removed for idea stealers
removed for idea stealers
new Body[MAX_PLAYERS][MAX_MAILS][128] , Sender[MAX_PLAYERS][MAX_MAILS][24], EmailSubject2[MAX_PLAYERS][MAX_MAILS][64], line[256];
//They would have to be global, unforunally uses lots of ram
[...]
sscanf(line, "p<|>s[24]s[64]s[128]", Sender[playerid][mailcount], EmailSubject2[playerid][mailcount], Body[playerid][mailcount]);
[...]
format(EmailList,sizeof(EmailList),"%s\nSender:%s\tSubject:%s",EmailList,Sender[playerid][mailcount], EmailSubject2[playerid][mailcount]);
//Then in OnDialogResponse use the listitem parameter and the playerid to get the selected mail