I need help about a Ticket Dialog -
Steph12 - 05.01.2011
Hello sorry for my bad english.
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;
}
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
Код:
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;
}
Pleas help me
Thank you
Steph12
AW: I need help about a Ticket Dialog -
Steph12 - 06.01.2011
//push
Re: I need help about a Ticket Dialog -
_rAped - 06.01.2011
Can't understand whatever langugae that is.
AW: I need help about a Ticket Dialog -
Steph12 - 06.01.2011
It is English !
Re: AW: I need help about a Ticket Dialog -
_rAped - 06.01.2011
Quote:
Originally Posted by Steph12
It is English !
|
Well, then my English teacher gave me the wrong grade. "Spieler Meldung von" (What does it mean? and what do you want?)
AW: I need help about a Ticket Dialog -
Steph12 - 06.01.2011
Yes that isn't english because i'm form Germany and that is why my Code is German too
SpielerInfo is like PlayerInfo in GF.