Hallo ihr da,
ich habe das Problem, ich bekomme diesen Warning: und weiß nicht was ich machen soll
C:\SA-MP Server\gamemodes\KA-1-0-0.pwn(33936) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 10800 bytes
Code size: 3288372 bytes
Data size: 9151704 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4987 cells (19948 bytes)
Total requirements:12467260 bytes
1 Warning.
die Zeilen:
if (strcmp(cmd, "/admins", true) == 0)
{
new adminrang[128], adminname[128];
if(!IsPlayerConnected(playerid))return 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
switch(IsPlayerAAdminR(i))
{
case 1:{adminrang="{FFFF00}Supporter";}
case 2:{adminrang="{00B200}Moderator";}
case 3:{adminrang="{009999}High Moderator";}
case 4:{adminrang="{0099FF}Trial Administrator";}
case 1336:{adminrang="{0000FF}Administrator";}
case 1337:{adminrang="{B40404}Head Administrator";}
case 1338:{adminrang="{01DFD7}Community & Projektmanager";}
case 1339:{adminrang="{F78181}stellvertretender Projektleiter";}
case 2000:{adminrang="{FF0000}Projektleiter";}
}
GetPlayerName(i, adminname, sizeof(adminname));
format(string,sizeof(string),"Folgende Administratoren von *** sind zurzeit online:\n\n%s{FFFFFF}: %s, ID: %d",adminrang,adminname,i);
}
ShowPlayerDialog(playerid,DIALOG_INFO,DIALOG_STYLE_MSGBOX,"{FFFFFF}Administration ({00FF00}online{FFFFFF})",string,"Bestätigen","");
return 1;
}
andere vlt wichtige Zeilen:
stock IsPlayerAAdminR(playerid,adminrang)
{
if (PlayerInfo[playerid][pAdmin] == adminrang)
return 1;
return 0;
}
stock CountPlayersAdminR(adminrang)
{
new count = 0;
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && IsPlayerAAdminR(i,adminrang))
{
count++;
}
}
return count;
}
Ich hoffe ihr könnt helfen..
MfG,
James.