Guten Abend
Ich bekomme irgentwie ein fehler wenn ich OCMD Befehle erstelle.
Fehler:
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(7) : error 017: undefined symbol "Gamemode"
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(74) : warning 219: local variable "text" shadows a variable at a preceding level
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(107) : error 010: invalid function or declaration
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(109) : error 010: invalid function or declaration
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(110) : error 010: invalid function or declaration
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(112) : error 010: invalid function or declaration
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(113) : error 010: invalid function or declaration
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(115) : error 010: invalid function or declaration
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(119) : error 054: unmatched closing brace ("}")
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(120) : error 010: invalid function or declaration
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(122) : error 010: invalid function or declaration
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(366) : warning 203: symbol is never used: "ban"
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(366) : warning 203: symbol is never used: "dveh"
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(366) : warning 203: symbol is never used: "freeze"
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(366) : warning 203: symbol is never used: "kick"
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(366) : warning 203: symbol is never used: "makeadmin"
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(366) : warning 203: symbol is never used: "string"
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(366) : warning 203: symbol is never used: "text"
C:\Users\-.-\Desktop\Gamemodes\GamemodeXBigBossX.pwn(366) : warning 203: symbol is never used: "veh"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
[pwn=107]ocmd@2:ac,adminchat(playerid,params[])
{
if(GetPVarInt(playerid,"Eingeloggt") == 0)return SCM(playerid,COLOR_GRAU,"Du bist nicht Eingeloggt.");
if(GetPVarInt(playerid,"Adminlevel") <1)return SCM(playerid,COLOR_GRAU,"Du bist nicht befugt diesen Befehl zu nutzen!");
new string[128],text[128];
if(sscanf(params,"s[128]",text))return SCM(playerid,COLOR_GRAU,"Info: /ac oder /adminchat [text]");
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && GetPVarInt(i,"Adminlevel") >0)
{
format(string,128,"[Adminchat]: %s: %s",SpielerName(i),text);
SCM(i,COLOR_BLAU,string);
}
return 1;
}
return 1;
}[/pwn]