Kriege die fehler wenn ich das Scriptwunsch: Support System in mein Script einfüge. Bitte um Hilfe Danke im Voraus
C:\Users\PC\Desktop\Script zum Scripten\samp\gamemodes\Reallife.pwn(40863) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\PC\Desktop\Script zum Scripten\samp\gamemodes\Reallife.pwn(40863) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\PC\Desktop\Script zum Scripten\samp\gamemodes\Reallife.pwn(42519) : error 017: undefined symbol "sendername"
C:\Users\PC\Desktop\Script zum Scripten\samp\gamemodes\Reallife.pwn(42519) : error 017: undefined symbol "sendername"
C:\Users\PC\Desktop\Script zum Scripten\samp\gamemodes\Reallife.pwn(42519) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\Script zum Scripten\samp\gamemodes\Reallife.pwn(42519) : fatal error 107: too many error messages on one line
if(ReportCall[playerid] != 999)
{
new sendername[MAX_PLAYER_NAME], string[80]; // ZEILE MIT FEHLER!!
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[REPORT-SYSTEM] %s Hat den Server verlassen! /report geschlossen", sendername);
SendClientMessage(playerid, COLOR_LIGHTGREEN,string);
ReportCall[playerid] = 999;
}
if(dialogid==DIALOG_REPORT)
{
if(response)
{
new stringrp[200];
GetPlayerName(playerid, sendername, sizeof(sendername));// ZEILE MIT FEHLER!!
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(stringrp, sizeof(stringrp), "Report von: [ID:%d]%s", playerid, sendername);
ABroadCast(0xE19898AA,stringrp,1);
format(stringrp, sizeof(stringrp), "Meldung: %s", (result));
ABroadCast(0xE19898AA,stringrp,1);
ABroadCast(0xA04C4CAA,"Tippe '/ar [SpielerID]' or '/tr [SpielerID]'",1);
SendClientMessage(playerid, 0x96C184AA, " Dein Report wurde an alle Admins gesendet die Online sind.");
JustReported[playerid] = 1;
PlayerNeedsHelp[playerid] = 1;
SetTimerEx("ReportReset", 30000, false, "i", playerid);
}
}