05.01.2011, 21:35
Hello sorry for my bad english.
I created a Ticket Dialog.
About this Code I'd like to see the messages the other players send in the dialog.
It doesn't works.
nothing Dissepear.
About this I'D like to save the massages
Pleas help me
Thank you
Steph12
I created a Ticket Dialog.
Код:
if(strcmp(cmd, "/tickets", true) == 0) { if(IsPlayerAdmin(playerid) || SpielerInfo[playerid][uAdmin] > 2) { new Ticket2; new Tickets[256]; format(Tickets,sizeof(Tickets),"/Tickets.cfg"); Ticket2 = dini_Int(Tickets,"Meldung"); format(string, sizeof(string),"%s",Ticket2); SendClientMessage(playerid,COLOR_GREEN,string); } return 1; }
It doesn't works.
nothing Dissepear.
About this I'D like to save the massages
Код:
if(dialogid == DIALOG_MELDEN) { if(response) { switch(listitem) { case 0: { ShowPlayerDialog(playerid,DIALOG_MELDEN_TEXT,DIALOG_STYLE_INPUT,"Melden","Tippe hier den Grund deiner Meldung","Bestдtigen","Abbrechen"); Meldung[playerid] = 1; } case 1: { ShowPlayerDialog(playerid,DIALOG_MELDEN_TEXT,DIALOG_STYLE_INPUT,"Melden","Tippe hier den Grund deiner Meldung","Bestдtigen","Abbrechen"); Meldung[playerid] = 2; } case 2: { ShowPlayerDialog(playerid,DIALOG_MELDEN_TEXT,DIALOG_STYLE_INPUT,"Melden","Tippe hier den Grund deiner Meldung","Bestдtigen","Abbrechen"); Meldung[playerid] = 3; } case 3: { ShowPlayerDialog(playerid,DIALOG_MELDEN_TEXT,DIALOG_STYLE_INPUT,"Melden","Tippe hier den Grund deiner Meldung","Bestдtigen","Abbrechen"); Meldung[playerid] = 4; } } } return 1; } if(dialogid == DIALOG_MELDEN_TEXT) { if(response) { new name[50]; GetPlayerName(playerid,name,sizeof(name)); if(Meldung[playerid] == 1) { format(string, sizeof(string), " Spieler Meldung von %s : %s ",name,inputtext); new Tickets[256]; format(Tickets,sizeof(Tickets),"/Tickets.cfg"); dini_Create(Tickets); dini_Set(Tickets,"Meldung",string); } if(Meldung[playerid] == 2) { format(string, sizeof(string), " Cheater Meldung von %s : %s ",name,inputtext); new Tickets[256]; format(Tickets,sizeof(Tickets),"/Tickets.cfg"); dini_Create(Tickets); dini_Set(Tickets,"Meldung",string); } if(Meldung[playerid] == 3) { format(string, sizeof(string), " Bug Meldung von %s : %s ",name,inputtext); new Tickets[256]; format(Tickets,sizeof(Tickets),"/Tickets.cfg"); dini_Create(Tickets); dini_Set(Tickets,"Meldung",string); } if(Meldung[playerid] == 4) { format(string, sizeof(string), " Allgemeine Meldung von %s : %s ",name,inputtext); new Tickets[256]; format(Tickets,sizeof(Tickets),"/Tickets.cfg"); dini_Create(Tickets); dini_Set(Tickets,"Meldung",string); } } return 1; }
Thank you
Steph12