4 errors
#1

Code: http://pastebin.com/0PvVhAhg
Errors : error 027: invalid character constant
error 017: undefined symbol "Name"
error 029: invalid expression, assumed zero
(254 : fatal error 107: too many error messages on one line
Top line of that pastebin is 2523 and the final line "}" is 2551.
Please help!
Reply
#2

try it like this

Код:
CMD:dmlist(playerid, params[])
{

    if(InDM[playerid] == 1) return SendClientMessage(playerid, COLOR_RED -1, "You are already in the Deathmatch"); // Use this to disable the command for the player while he is in the DM.

    new dm1, dm2, dm3, dm4, dm5;
    for(new i, j = GetPlayerPoolSize(); i <= j; i++)
    {
        switch(DMZone[i])
        {
            case 1: dm1++; // This Deathmatch 1
            case 2: dm2++; // This Deathmatch 2
            case 3: dm3++; // This Deathmatch 3
            case 4: dm4++; // This Deathmatch 4
            case 5: dm5++; // This Deathmatch 5
        }
    }

    new string[128];
    format(string, sizeof(string),
    "Name\tPlayers\n\
     LVPD (/dm 1)\t %i\n\
     Jefferson Motel (/dm 2)\t %i\n\
     Jefferson Area (/dm 3)\t %i\n\
     RC Battle Ground(/dm 4)\t %i\n\
     Deathmatch 5(/dm 5)\t %i\n", dm1, dm2, dm3, dm4, dm5);
    ShowPlayerDialog(playerid, DM_DIALOG, DIALOG_STYLE_TABLIST_HEADERS, "Koky's Deathmatch List", string, "Okay", "Cancel");
    return 1;
}
Reply
#3

Worked! +rep!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)