Wo du #define stehen hast:
#define DIALOG_TICKET_S1 65
#define DIALOG_TICKET_S22 67
#define DIALOG_TICKET_S32 68
//=======================================================================
if(strcmp(cmd, "/report", true) == 0)
{
ShowPlayerDialog(playerid, DIALOG_TICKET_S1, DIALOG_STYLE_LIST, "Vorhandene Themen", "Allgemeiner Support\nCheatermeldung\nFrage an High Admins", "Auswählen", "Beenden");
return 1;
}
if(strcmp(cmd, "/gotocar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
//=======================================================================
if(dialogid == DIALOG_TICKET_S1)
{
if(response)
{
if(listitem == 0)
{
GetPlayerName(playerid,reportname,MAX_PLAYER_NAME);
format(ticketmsg,256,"Allgemeine Fragen\n\nBenutzer:\t%s\n\nBitte schreibe hier deine Frage.",reportname);
ShowPlayerDialog(playerid,DIALOG_TICKET,DIALOG_STYLE_INPUT,"/Ticket an die Admins",ticketmsg,"Absenden","Beenden");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid,DIALOG_TICKET_S22, DIALOG_STYLE_INPUT, "Cheatermeldung", "Bitte schreibe den Namen des Cheaters hier hin und\nschreib auf, was er begangen hat.", "Absenden", "Beenden");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid,DIALOG_TICKET_S32, DIALOG_STYLE_INPUT, "Frage an High Admins", "Bitte schreibe hier deine Frage auf\nSie wird dann so schnell wie möglich von\neinem Admin 4 oder höher beantwortet!", "Absenden", "Beenden");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Ticket-System verlassen.");
}
}
if(dialogid == DIALOG_TICKET_S22)
{
if(response && strlen(inputtext) > 0)
{
format(string, sizeof(string), "[CHEATERMELDUNG] %s[ID:%d]: %s", sendername, playerid, inputtext);
ticketsys(string);
for(new i=0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pSupporter] >= 1)
{
SendClientMessage(i, 0xFF0023FF, string);
}
}
format(string, sizeof(string), "Cheatermeldung abgeschickt [%s]", inputtext);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Ticket-System verlassen");
}
}
if(dialogid == DIALOG_TICKET_S32)
{
if(response && strlen(inputtext) > 0)
{
format(string, sizeof(string), "[FRAGE AN HIGHADMIN] %s[ID:%d]: %s", sendername, playerid, inputtext);
ticketsys(string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] >= 4)
{
SendClientMessage(i, 0xFF0069FF, string);
}
}
format(string, sizeof(string), "Frage abgeschickt [%s]", inputtext);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Ticket-System verlassen");
}
}
if(dialogid == DIALOG_TICKET)
{
if(response && strlen(inputtext) > 0)
{
format(string, sizeof(string), " [TICKET] %s[ID:%d]: %s", sendername,playerid,inputtext);
ticketsys(string);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pSupporter] >= 1 || PlayerInfo[i][pAdmin] >= 1)
{
SendClientMessage(i,0x00B20AFF,string);
}
}
}
format(string, sizeof(string), " Du hat ein neues Ticket eingesendet : [%s] |", inputtext);
SendClientMessage(playerid, COLOR_GRAD2, string);
GameTextForPlayer(playerid, "Ticket abgesendet",5000,3);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Ticket-System Verlassen");
}
return 1;
}
Gruß,
i.A COPYRIGHT'