Hallo Liebe Leute ehm ich hatte eine kleine frage also ihrgend wie habe 5erors ich poste euch mall was ich gescripte hab wo ran liegt das ? hier auch die Erros
Errors: C:\Program Files\Realtek 2\German Selfmade RealLife\gamemodes\GSR.pwn(118) : warning 219: local variable "pID" shadows a variable at a preceding level
C:\Program Files\Realtek 2\German Selfmade RealLife\gamemodes\GSR.pwn(122) : error 017: undefined symbol "SpielerName"
C:\Program Files\Realtek 2\German Selfmade RealLife\gamemodes\GSR.pwn(486) : warning 217: loose indentation
C:\Program Files\Realtek 2\German Selfmade RealLife\gamemodes\GSR.pwn(496) : warning 217: loose indentation
C:\Program Files\Realtek 2\German Selfmade RealLife\gamemodes\GSR.pwn(515) : error 021: symbol already defined: "Kick"
C:\Program Files\Realtek 2\German Selfmade RealLife\gamemodes\GSR.pwn(518) : error 021: symbol already defined: "Kick"
C:\Program Files\Realtek 2\German Selfmade RealLife\gamemodes\GSR.pwn(519) : error 010: invalid function or declaration
C:\Program Files\Realtek 2\German Selfmade RealLife\gamemodes\GSR.pwn(527) : warning 203: symbol is never used: "pID"
ocmd:kick(playerid,params[])
{
new pID, string[128], Grund[128];
if(sscanf(params,"us",pID,Grund))return SendClientMessage(playerid,ROT,"Benutze:/Kick [Playerid] [Grund]");
if(!IsPlayerConnected(pID))return SendClientMessage(playerid,ROT,"Ungültiger Spieler");
{
format(string,sizeof(string),"ADCM: %s wurde von %s gekickt,Grund:%s",SpielerName(pID),SpielerName(playerid),Grund);
SendClientMessageToAll(ROT,string);
SetTimer("Kick",1000,false);
return 1;
}
}
forward kick();
public Kick()
{
new pID;
Kick(pID);
return 1;
}
stock MeinName(playerid)
{
new nam[MAX_PLAYER_NAME];
GetPlayerName(playerid, nam, sizeof(nam));
return nam;
}