Hallo,
ich hab ein /report dialog gemacht:
if(strcmp(cmd, "/report", true) == 0)//REPORTMENUE
{
if(IsPlayerConnected(playerid))
{
ShowPlayerDialog(playerid, REPORTMENUE, DIALOG_STYLE_LIST, "Wähle deine Kategorie aus", "Cheater Report\nReport\nAllgemeine Frage\nSonstiges", "Auswählen", "Abbrechen");
}
return 1;
}
und da bei dialogRe..
if(dialogid == REPORTMENUE)
{
if(response)
{
if(listitem == 0)
{
new reportname[64];
new reportstring[128];
GetPlayerName(playerid,reportname,sizeof(reportname));
format(reportstring,sizeof(reportstring),"Willkommen im Cheatersystem\n\n\n Name: %s.\n\nWas möchtest du melden?\n\n\n",reportname);
ShowPlayerDialog(playerid,REPORTMENU,DIALOG_STYLE_INPUT,"CHEATERSYSTEM",reportstring,"Senden","Abbrechen");
}
if(listitem == 1)
{
new chname[64];
new chstring[128];
GetPlayerName(playerid,chname,sizeof(chname));
format(chstring,sizeof(chstring),"Willkommen im Reportsystem\n\n\n Name: %s.\n\nWas möchtest du melden?\n\n\n",chname);
ShowPlayerDialog(playerid,REPORTMENU,DIALOG_STYLE_INPUT,"Reportsystem",chstring,"Senden","Abbrechen");
}
if(listitem == 2)
{
new fragname[64];
new fragstring[128];
GetPlayerName(playerid,fragname,sizeof(fragname));
format(fragstring,sizeof(fragstring),"Willkommen im Fragesystem\n\n\n Name: %s.\n\nWas möchtest du fragen?\n\n\n",fragname);
ShowPlayerDialog(playerid,REPORTMENU,DIALOG_STYLE_INPUT,"Fragesystem",fragstring,"Senden","Abbrechen");
}
if(listitem == 3)
{
new sonname[64];
new sonstring[128];
GetPlayerName(playerid,sonname,sizeof(sonname));
format(sonstring,sizeof(sonstring),"Willkommen im sonstige Meldungssystem\n\n\n Name: %s.\n\nWas möchtest du uns mitteilen?\n\n\n",sonname);
ShowPlayerDialog(playerid,REPORTMENU,DIALOG_STYLE_INPUT,"Sonstige Meldungssystem",sonstring,"Senden","Abbrechen"); }
}
}
if(dialogid == REPORTMENU)
{
new str[160];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
for (new i = 0; i < MAX_PLAYER_NAME; i++)
if (str[i] == '_')
str[i] = ' ';
format(str, sizeof(str), "[ID:%d] %s meldet Cheater: %s",playerid, str, (inputtext));
ABroadCast(COLOR_YELLOW,str,1);
SendClientMessage(playerid, COLOR_YELLOW, "Dein Cheat-Report wurde an die Admins gesendet!");
}
}
}
if(dialogid == CHEATERMENU)
{
new stra[160];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
for (new i = 0; i < MAX_PLAYER_NAME; i++)
if (str[playerid] == '_')
str[playerid] = ' ';
format(str, sizeof(str), "[ID:%d] %s meldet: %s",playerid, str, (inputtext));
ABroadCast(COLOR_YELLOW,str,1);
SendClientMessage(playerid, COLOR_YELLOW, "Dein Report wurde an die Admins gesendet!");
}
}
}
if(dialogid == FRAGEMENU)
{
new str[160];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
for (new i = 0; i < MAX_PLAYER_NAME; i++)
if (str[i] == '_')
str[i] = ' ';
format(str, sizeof(str), "[ID:%d] %s fragt: %s",playerid, str, (inputtext));
ABroadCast(COLOR_YELLOW,str,1);
SendClientMessage(playerid, COLOR_YELLOW, "Deine 'Frage' wurde an die Admins gesendet!");
}
}
}
if(dialogid == SONMENU)
{
new str[160];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
for (new i = 0; i < MAX_PLAYER_NAME; i++)
if (str[i] == '_')
str[i] = ' ';
format(str, sizeof(str), "[ID:%d] %s möchtet mitteilen: %s",playerid, str, (inputtext));
ABroadCast(COLOR_YELLOW,str,1);
SendClientMessage(playerid, COLOR_YELLOW, "Dein Text wurde an die Admins gesendet!");
}
}
}
if(dialogid == hotel) //
{
if(response)
{
if(listitem == 0) // Zimmer mieten
{
PlayerInfo[playerid][pOrigin] = 2;
SetPlayerPos(playerid,-2422.3594,337.7117,37.0023);
SendClientMessage(playerid, COLOR_YELLOW, "Du hast dir jetzt für 200$ ein Zimmer gemietet.");
SendClientMessage(playerid, COLOR_YELLOW, "Nach dem nächsten Payday wird deine Wohnung gekündigt!");
}
if(listitem == 1) // Zimmer anschauen
{
SetPlayerInterior(playerid,12);
SetPlayerPos(playerid,445.16778564453,509.36322021,1001.41949462);
}
}
}
Aber ich bekomme i-wie diese Errors:
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27419) : warning 217: loose indentation
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27482) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27498) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27500) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27501) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : error 029: invalid expression, assumed zero
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Alles anzeigen
Wieso bekomme ich diese Errors?
Wär net wenn ihr mir helfen könnt...
Danke
Mfg Pascal