Hallo liebe Leute also ich habe ein ocmd:unmute befehle aber ich bekomme erros? warum?
//Mute befehle
if(strcmp(cmd, "/mute", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "FEHLER: /mute [playerid]");
return 1;
}
new playa;
playa = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playa][pMuted] == 0)
{
PlayerInfo[playa][pMuted] = 1;
printf("AdmCmd: %s silenced %s",sendername, giveplayer);
format(string, sizeof(string), "AdmCmd: %s wurde von %s gemutet",giveplayer ,sendername);
ABroadCast(COLOR_LIGHTRED,string,1);
}
else
{
PlayerInfo[playa][pMuted] = 0;
printf("AdmCmd: %s unsilenced %s",sendername, giveplayer);
format(string, sizeof(string), "AdmCmd: %s wurde von %s unmutet",giveplayer ,sendername);
ABroadCast(COLOR_LIGHTRED,string,1);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du darfst diesen Befehl nicht benutzen!");
}
}
return 1;
}
//unmute befehle
ocmd:unmute(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
new pID,Grund[128],string[400];
if(sscanf(params,"is[128]",pID,Grund)) return SendClientMessage(playerid,COLOR_RED,"Nutzung: /newunmute [playerid] [Grund]");
if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,COLOR_RED,"Dieser Spieler ist nicht Online!");
if(PlayerInfo[pID][pMuteTime] == 0) return SendClientMessage(playerid,COLOR_RED,"Dieser Spieler hat keinen Mute.");
PlayerInfo[pID][pMuteTime] = 0;
format(string, sizeof(string), "AdmCmd: %s hat dich unmutet. Grund: %s",PlayerName[playerid],Grund);
SendClientMessage(pID,COLOR_LIGHTRED,string);
format(string, sizeof(string), "AdmCmd: Du hast %s unmutet. Grund: %s",PlayerName[pID],Grund);
SendClientMessage(playerid,COLOR_LIGHTRED,string);
OnPlayerUpdate_(pID);
format(string,sizeof(string),"[UNMUTE] %s hat %s unmutet | Grund: %s!",PlayerName[playerid], PlayerName[pID], Grund);
ABroadCast(COLOR_LIGHTRED,string,1);
}
else SendClientMessage(playerid,COLOR_RED,"Du bist kein Rang 4 Admin!");
return 1;
}
Erros
C:\Users\suleyman\Desktop\m.. Orginal\gamemodes\mRP.pwn(36007) : error 029: invalid expression, assumed zero
C:\Users\suleyman\Desktop\m.. Orginal\gamemodes\mRP.pwnpwn(36007) : error 017: undefined symbol "ocmd_unmute"
C:\Users\suleyman\Desktop\m.. Orginal\gamemodes\mRP.pwn.pwn(36007) : error 029: invalid expression, assumed zero
C:\Users\suleyman\Desktop\m.. Orginal\gamemodes\mRP.pwn.pwn(36007) : fatal error 107: too many error messages on one line