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
#2

//push
Reply
#3

Can't understand whatever langugae that is.
Reply
#4

It is English !
Reply
#5

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?)
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)