Jump to content
  • 0

warning 202


Andrei Ady

Question

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.