new dString[200], dStCat[200*MAX_ACTORS_HISTORY], dokass[50];
format(dString, 160, "Vardas\tPatirtis / lygis \tPinigш sk.\tTurimi dokumentai\n");
strcat(dString, dStCat);
for (new j; j < MAX_ACTORS_HISTORY; j ++){
switch(historyActors[j][Docs]){
case 0: dokass = "neturi jokiш dokumentш";
case 1: dokass = "turi B kat. teises";
case 2: dokass = "turi tik sveikatos paюymа";
case 3: dokass = "turi B kat. teises ir sveikatos paюymа";
}
format(dString, 160, "%s\t%d / %d\t%d\t%s\n", historyActors[j][NameActor], historyActors[j][Experience], historyActors[j][Level], historyActors[j][Money], dokass);
strcat(dString, dStCat, sizeof(dString));
printf( "%s\t%d / %d\t%d\t%s\n", historyActors[j][NameActor], historyActors[j][Experience], historyActors[j][Level], historyActors[j][Money], dokass);
}
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_TABLIST_HEADERS, "Istorijos pasirinkimas", dStCat, "Rinktis", "");
printf("dialogas?");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_TABLIST_HEADERS, "Istorijos pasirinkimas", dStCat, "Rinktis", "");
#define DIALOG_INFO ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_TABLIST_HEADERS, "Istorijos pasirinkimas", dStCat, "Rinktis", "");
format(dString, 160, "%s\t%d / %d\t%d\t%s\n", historyActors[j][NameActor], historyActors[j][Experience], historyActors[j][Level], historyActors[j][Money], dokass);
strcat(dString, dStCat, sizeof(dString));
format(dStCat, 160, "%s\t%d / %d\t%d\t%s\n", historyActors[j][NameActor], historyActors[j][Experience], historyActors[j][Level], historyActors[j][Money], dokass); strcat(dString, dStCat, sizeof(dString));
dString = "Vardas\tPatirtis / lygis \tPinigш sk.\tTurimi dokumentai\n";
That won't do anything, all you're doing is changing the DialogID from 3, to DIALOG_INFO... Please, don't guess on this sort of thing.
|