- 0
warning 202
-
Similar Content
-
- 2 replies
- 3,610 views
-
- 2 answers
- 447 views
-
- 2 replies
- 528 views
-
- 2 answers
- 392 views
-
- 3 answers
- 1,721 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Andrei Ady
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??
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.