-
Posts
1 -
Joined
-
Last visited
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
warning 202
in Suport Client
Posted
warning 202: number of arguments does not match definition
YCMD:admins(playerid, params[])
{
new string[128], count;
format(string, sizeof(string), "---------------- Admini Green-Play Conectati ----------------");
SendClientMessage(playerid, COLOR_GOLD, string);
if(PlayerInfo[playerid][pAdmin] < 5) {
for(new j=1;j<=9;j++) {
foreach(Player,i) {
if(PlayerInfo[pAdmin] == j && GetPVarInt(i, "Cover") == 0) {
format(string, sizeof(string), "%s %s (%d)", GetAdminRank(i), GetName(i),i);
SendClientMessage(playerid, COLOR_GOLD, string);
count++;
}
}
}
}
else {
for(new j=1;j<=9;j++) {
foreach(Player,i) {
if(PlayerInfo[pAdmin] == j) {
if(GetPVarInt(i, "Cover") == 1) format(string, sizeof(string), "%s %s (%d) - AFK %d min. (%d sec.) - Cover: %s", GetAdminRank(i), PlayerInfo[pUsername],i, AFKSeconds/60, AFKSeconds, GetName(i));
else if(Spectate != 255) format(string, sizeof(string), "%s %s (%d) - spectator pe %s (%d)", GetAdminRank(i), PlayerInfo[pUsername],i, GetName(Spectate), Spectate);
else format(string, sizeof(string), "%s %s (%d) - AFK %d min. (%d sec.)", GetAdminRank(i), PlayerInfo[pUsername],i, AFKSeconds/60, AFKSeconds);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
}
format(string, sizeof(string), "{ADFF5C}* Sunt %d admini conectati in acest moment.", count);
SendClientMessage(playerid, COLOR_GOLD, string);
SendClientMessage(playerid, COLOR_GOLD, "--------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "Daca ai o nelamurire legata de server tasteaza /n sau /report!");
SendClientMessage(playerid, COLOR_GOLD, "--------------------------------------------------------");
return 1;
}
Ce seste gresit la ea??