03.07.2013, 22:49
(
Last edited by Typhome; 04/07/2013 at 09:26 AM.
)
Fixed. Thanks to Nero_3D.
for(new i; i < sizeof(Contact); i++) // i < MAX_PLAYERS
for(new i; i < sizeof(Contact[]); i++) // i < MAX_CONTACTS
//
for(new i, text[32] = "None"; i < sizeof Contact[]; i++) {
Contact[playerid][i][ContactName] = text;
Contact[playerid][i][ContactNumber] = 0;
}
//
new
str[MAX_CONTACTS * 38] = "Lisa uus kontakt"
;
for(new i; i < sizeof Contact[]; i++) {
format(str, sizeof str, "%s\n%s (%d)", str, Contact[playerid][i][ContactName], Contact[playerid][i][ContactNumber]);
}
TELEFON_valik[playerid] = 10;
ShowPlayerDialog(playerid, DIALOG_TELEFON, DIALOG_STYLE_LIST, "Telefon (Kontaktid)", str, "Vali", "Katkesta");