Hey
Habe bei meinem Befehl Errors -.-
ocmd:/setadmin(playerid,params[])
{
new pID, adminlevel;
if(sscanf(params, "ud",pID,adminlevel))return SendClientMessage(playerid,0xC8C8C8FF,"Benutzung: /setadmin [ID/Name] [Rank (0 bis 4)] ");
if (!IsPlayerConnected(pID))return SendClientMessage(playerid,0xC8C8C8FF,"Dieser Spieler ist nicht online!");
if(adminlevel < 0 adminlevel > 4) return SendClientMessage(playerid,0xC8C8C8FF, "Das AdminLevel darf nicht niedriger als 0 und nicht höher als 4 sein!");
if(PlayerInfo[playerid][pAdminLevel] < 5) return SendClientMessage(playerid,COLOR_GREY,"Dies ist ein Adminbefehl, du bist kein Admin.");
{
PlayerInfo[pAdminLevel][pAdminlevel] = Adminlevel;
}
return 1;
}
Need help
warning 219: local variable "pID" shadows a variable at a preceding level
: warning 219: local variable "pID" shadows a variable at a preceding level
: warning 219: local variable "pID" shadows a variable at a preceding level
: warning 219: local variable "pID" shadows a variable at a preceding level
warning 219: local variable "pID" shadows a variable at a preceding level
: warning 219: local variable "pID" shadows a variable at a preceding level
warning 219: local variable "pID" shadows a variable at a preceding level
warning 219: local variable "pID" shadows a variable at a preceding level
warning 219: local variable "pID" shadows a variable at a preceding level
warning 219: local variable "pID" shadows a variable at a preceding level
error 001: expected token: "(", but found "/"
error 001: expected token: ";", but found "-identifier-"
error 001: expected token: ";", but found "/"
fatal error 107: too many error messages on one line