05.11.2017, 00:27
The prints are showing up, but dialog doesnt pop up.
PHP код:
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?");