dialog doesnt show up
#1

The prints are showing up, but dialog doesnt pop up.

PHP код:
new dString[200], dStCat[200*MAX_ACTORS_HISTORY], dokass[50];
        
format(dString160"Vardas\tPatirtis / lygis \tPinigш sk.\tTurimi dokumentai\n");
        
strcat(dStringdStCat);
        for (new 
jMAX_ACTORS_HISTORY++){
            switch(
historyActors[j][Docs]){
                case 
0dokass "neturi jokiш dokumentш";
                case 
1dokass "turi B kat. teises";
                case 
2dokass "turi tik sveikatos paюymа";
                case 
3dokass "turi B kat. teises ir sveikatos paюymа";
            }
            
format(dString160"%s\t%d / %d\t%d\t%s\n"historyActors[j][NameActor], historyActors[j][Experience], historyActors[j][Level], historyActors[j][Money], dokass);
            
strcat(dStringdStCatsizeof(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(playerid3DIALOG_STYLE_TABLIST_HEADERS"Istorijos pasirinkimas"dStCat"Rinktis""");
        
printf("dialogas?"); 
Reply
#2

Код:
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_TABLIST_HEADERS, "Istorijos pasirinkimas", dStCat, "Rinktis", "");
change to
Код:
#define DIALOG_INFO
ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_TABLIST_HEADERS, "Istorijos pasirinkimas", dStCat, "Rinktis", "");
Reply
#3

Quote:
Originally Posted by AlexMSK
Посмотреть сообщение
change to
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.
Reply
#4

dStCat is empty and a dialog isn't shown if the main body is empty.

pawn Код:
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));
needs to be:
Код:
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));
You can also assign directly text to a string like this:
pawn Код:
dString = "Vardas\tPatirtis / lygis \tPinigш sk.\tTurimi dokumentai\n";
Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
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.
Not only that, but would also give errors (he forgot the number).
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)