ocmd kick(playerid,params[])
{
if(Eingeloggt[playerid] == 0) return SendClientMessage(playerid,GRAU,"Du bist nicht eingeloggt.");
new string[264],pID,Grund,Kicker[MAX_PLAYER_NAME],Gekickter[MAX_PLAYER_NAME];
GetPlayerName(pID,Gekickter,MAX_PLAYER_NAME);
GetPlayerName(playerid,Kicker,MAX_PLAYER_NAME);
if(SpielerInfo[playerid][pTeam] <= 1)return SendClientMessage(playerid,GRAU,"Dieser Befehl ist für dich nicht verfügbar.");
if(sscanf(params,"u",pID)) return SendClientMessage(playerid, GRAU,"Benutze: /kick [playerid] [Grund]");
if(!IsPlayerConnected(pID))return SendClientMessage(playerid, GRAU,"Es ist kein Spieler mit diesem/dieser Name/id online.");
format(string,sizeof(string),"Supporter %s hat den Spieler %s vom Server gekickt. Grund: %s.",Kicker,Gekickter,Grund);
SendClientMessageToAll(GRAU,string);
Kick(pID);
}
Moin, Habe einfach mal aus dem Kopf heraus einen Kick Befehl 'versucht'. Will jedoch nicht..
C:\Users\Dominik\Desktop\Fabulous Life\pawno\include\sscanf2.inc(218) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\pawno\include\sscanf2.inc(218) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\pawno\include\sscanf2.inc(278) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\pawno\include\sscanf2.inc(278) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(120) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(178) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(389) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(404) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(419) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(495) : warning 219: local variable "pID" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(495) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(538) : error 010: invalid function or declaration
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(540) : error 010: invalid function or declaration
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(542) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(544) : error 010: invalid function or declaration
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(545) : error 010: invalid function or declaration
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(546) : error 010: invalid function or declaration
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(555) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(555) : warning 219: local variable "pID" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(910) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(924) : warning 203: symbol is never used: "Gekickter"
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(924) : warning 203: symbol is never used: "Grund"
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(924) : warning 203: symbol is never used: "Kicker"
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(924) : warning 203: symbol is never used: "pID"
C:\Users\Dominik\Desktop\Fabulous Life\gamemodes\life.pwn(924) : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.