Jump to content
  • 0

Problema compilare.


Csf

Question

C:\gm\edit by adrian\KiNGZoR.pwn(22817) : error 029: invalid expression, assumed zero
C:\gm\edit by adrian\KiNGZoR.pwn(22817) : warning 215: expression has no effect
C:\gm\edit by adrian\KiNGZoR.pwn(22817) : warning 215: expression has no effect
C:\gm\edit by adrian\KiNGZoR.pwn(22817) : warning 215: expression has no effect
C:\gm\edit by adrian\KiNGZoR.pwn(22817) : warning 215: expression has no effect
C:\gm\edit by adrian\KiNGZoR.pwn(22817) : warning 215: expression has no effect
C:\gm\edit by adrian\KiNGZoR.pwn(22817) : error 001: expected token: ";", but found ")"
C:\gm\edit by adrian\KiNGZoR.pwn(22817) : error 029: invalid expression, assumed zero
C:\gm\edit by adrian\KiNGZoR.pwn(22817) : fatal error 107: too many error messages on one line

 

Linia:

ShowPlayerDialog(playerid, DIALOG_APLICATII, DIALOG_STYLE_TABLIST_HEADERS, "Aplicatile jucatorilor...", stringapps , "Selecteaza", "Anuleaza");

 

Comanda:

CMD:aplicatii(playerid, params[])
{
    new checkmysql[1200],idaplicant,stringapps[1000],doarodata = 0,levelaplicant,numeaplicant[60],oreaplicant,result[500],idlistitem = 0;
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Nu esti logat.");
    new Cache: verificare3;
    if(PlayerInfo[playerid][pLeader] < 1) return SCM(playerid, COLOR_ERROR, "Nu esti lider la o factiune");
    mysql_format(SQL, checkmysql, sizeof(checkmysql), "SELECT * FROM `aplications` WHERE `factionid`='%d'",PlayerInfo[playerid][pLeader]);
    new Cache: verificare = mysql_query(SQL, checkmysql);
    if(cache_get_row_count() > 0)
    {
        for(new i, c = cache_get_row_count(); i != c; i++)
        {
            idaplicant = cache_get_field_content_int(i, "playerid");
               mysql_format(SQL, checkmysql, sizeof(checkmysql), "SELECT * FROM `users` WHERE `id`='%d'",idaplicant);
            new Cache: verificare2 = mysql_query(SQL, checkmysql);
            for(new x, ca = cache_get_row_count(); x != ca; x++)
            {
                    cache_get_field_content(x, "name", result); format(numeaplicant, 30, result);
                levelaplicant = cache_get_field_content_int(x, "Level");
                oreaplicant = cache_get_field_content_int(x, "ConnectedTime");
                Selected[playerid][idlistitem] = idaplicant;
                idlistitem += 1;
                cache_delete(verificare2);
                if(doarodata == 0)
                {
                      format(stringapps, sizeof(stringapps), "Nume\tLevel\tOre jucate\n");
                    doarodata = 1;
                }
                format(stringapps, sizeof(stringapps), "%s%s\t%d\t%d\n",stringapps,numeaplicant,levelaplicant,oreaplicant);
            }
            mysql_format(SQL, checkmysql, sizeof(checkmysql), "SELECT * FROM `aplications` WHERE `factionid`='%d'",PlayerInfo[playerid][pLeader]);
            verificare3 = mysql_query(SQL, checkmysql);

        }
        ShowPlayerDialog(playerid, DIALOG_APLICATII, DIALOG_STYLE_TABLIST_HEADERS, "Aplicatile jucatorilor...", stringapps , "Selecteaza", "Anuleaza");
    }
    else
    {
        SCM(playerid, COLOR_ERROR, "Nu exista aplicatii");
    }
    cache_delete(verificare3);
    cache_delete(verificare);
    return 1;
}

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.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.