Guten Tag,
Ich brauche hilfe undzwar habe ich ein Problem mit /setadmin
ocmd:setadmin(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
new pID, rank;
if(sscanf(params,"ui",pID,rank))return SendClientMessage(playerid,ROT,"/setadmin [spieler] [level] ");
if(rank<1||rank>5)return SendClientMessage(playerid,ROT,"Bitte gültigen Rang angeben.");
SetPVarInt(pID,"Adminlevel",rank);
SpielerSpeichern(pID);
[color=#0000ff]SendClientMessage(playerid,BLAU,"%s hat dein Admin Level auf %i gesetzt.",SpielerName,GetPVarInt(playerid,"Adminlevel"));[/color]
return 1;
}
else
{
SendClientMessage(playerid,ROT,"Du bist kein Admin.");
}
return 1;
}
Teil der Stock´s:
stock SpielerSpeichern(playerid)
{
if(GetPVarInt(playerid,"loggedin")==1)
{
new name[MAX_PLAYER_NAME], pfad[64];
GetPlayerName(playerid,name,sizeof(name));
format(pfad,sizeof(pfad),"/Accounts/%s.txt",name);
dini_IntSet(pfad,"Level",GetPlayerScore(playerid));
dini_IntSet(pfad,"Geld",GetPlayerMoney(playerid));
dini_IntSet(pfad,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));
dini_IntSet(pfad,"Fraktion",GetPVarInt(playerid,"Fraktion"));
dini_IntSet(pfad,"Baned",GetPVarInt(playerid,"Baned"));
dini_IntSet(pfad,"timeban",GetPVarInt(playerid,"timeban"));
dini_IntSet(pfad,"Tode",GetPVarInt(playerid,"Tode"));
dini_IntSet(pfad,"Kills",GetPVarInt(playerid,"Kills"));
dini_IntSet(pfad,"Skin",GetPVarInt(playerid,"Skin"));
}
return 1;
}
Und der Error Code:
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(182) : warning 202: number of arguments does not match definition
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(190) : warning 202: number of arguments does not match definition
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(257) : warning 217: loose indentation
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(270) : warning 217: loose indentation
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(300) : error 076: syntax error in the expression, or invalid function call
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(340) : warning 217: loose indentation
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(341) : warning 217: loose indentation
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(348) : warning 202: number of arguments does not match definition
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(354) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Helft mir