I need help about a Ticket Dialog
#1

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
Reply


Messages In This Thread
I need help about a Ticket Dialog - by Steph12 - 05.01.2011, 21:35
AW: I need help about a Ticket Dialog - by Steph12 - 06.01.2011, 11:48
Re: I need help about a Ticket Dialog - by _rAped - 06.01.2011, 11:53
AW: I need help about a Ticket Dialog - by Steph12 - 06.01.2011, 11:55
Re: AW: I need help about a Ticket Dialog - by _rAped - 06.01.2011, 11:57
AW: I need help about a Ticket Dialog - by Steph12 - 06.01.2011, 13:29

Forum Jump:


Users browsing this thread: 3 Guest(s)