Jump to content

Smulyz

Membru
  • Posts

    49
  • Joined

  • Last visited

Posts posted by Smulyz

  1. eroarea 

     

    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(304) : warning 203: symbol is never used: "setadmin"
    Pawn compiler 3.10.10              Copyright (c) 1997-2006, ITB CompuPhase

    Header size:           4424 bytes
    Code size:           175064 bytes
    Data size:         17121792 bytes
    Stack/heap size:      16384 bytes; estimated max. usage=1279 cells (5116 bytes)
    Total requirements:17317664 bytes

    1 Warning.
    [Finished in 1.7s]

     

    linia

    CMD:setadmin(playerid, params[])
    {
        if(PlayerInfo[playerid][pAdmin] < 6)
            return SendClientMessage(playerid, 0xB1BFCC80, "Eroare: Nu ai gradul administrativ necesar.");
        
        new id, admin, string[64];
        if(sscanf(params, "ud", id, admin))
            return SendClientMessage(playerid, 0xB1BFCC80, "SYNTAX: /setadmin <ID/Name> <Admin Level (0-7)>");
        
        if(admin < 0 || admin > 7)
            return SendClientMessage(playerid, -1, "Invalid Admin Level.");
        
        format(string, sizeof(string), "Felicitari! Ai fost promovat la admin %d.", admin);
        SendClientMessage(id, -1, string);
        
        new query[100];
        PlayerInfo[playerid][pAdmin] = admin;
        mysql_format(SQL, query, sizeof(query), "UPDATE `accounts` SET `Admin` = '%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pSQLID]);
        mysql_tquery(SQL, query);
        
        return 1;
    }

  2. linia de la cod

    mysql_format(SQL, gQuery, 128, "select = from accounts where Name = '%s' limit 1", GetName(playerid));

    erorile

    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : warning 236: unknown parameter in substitution (incorrect #define pattern)
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : warning 236: unknown parameter in substitution (incorrect #define pattern)
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : error 029: invalid expression, assumed zero
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : error 029: invalid expression, assumed zero
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : error 001: expected token: ";", but found "]"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : fatal error 107: too many error messages on one line

     

  3. 8 minutes ago, Akan said:

    Linia respectiva trebuie sa arate in felul urmator:

    if(mysql_errno(SQL) != 0) print("[MySQL]: Baza de date nu s-a putut conecta cu succes.");

    Si inlocuiesti tu SQL cu numele variabilei tale pentru baza de date.

    Acum imi da erorile astea 

    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(106) : error 017: undefined symbol "gQuery"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(106) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(106) : error 001: expected token: ";", but found "]"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(106) : error 029: invalid expression, assumed zero
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(106) : fatal error 107: too many error messages on one line
     

    linia de cod|:

    gQuery[0] = EOS;

    linile de jos

    mysql_format(SQL, gQuery, 128, "select = from accounts where Name = '%s' limit 1", GetName(playerid));
        mysql_tquery(SQL, gQuery, "checkAccount", "i", playerid);

  4. linia de cod:

    if(mysql_errno(!= 0))(!= 0) print("[MySQL]: Baza de date nu s-a putut conecta cu succes.");

    erorile:

    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(85) : error 029: invalid expression, assumed zero
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(85) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(85) : error 001: expected token: ";", but found ")"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(85) : error 029: invalid expression, assumed zero
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(85) : fatal error 107: too many error messages on one line

     

    versiunea mysql r41-4

  5. 47 minutes ago, Vicentzo- said:

    Salut, arata unde ai definit hande-ul (variabila SQL) , expected tag "MySQL", but found "MySql" aceasta eroare ti-o da probabil ca ai definit in felul urmator

    new MySql:SQL // varianta incorecta
    
    new MySQL:SQL // varianta buna

    incearca sa te corectezi acolo si vezi ce erori iti mai da

    new 
        MySql:SQL, Iterator:playerLogged<MAX_PLAYERS>, gQuery[1024], gString[1024];
    daca la asta te referi

     

  6. C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(84) : error 035: argument type mismatch (argument 1)
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(84) : warning 213: tag mismatch: expected tag "MySql", but found none ("_")
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : warning 236: unknown parameter in substitution (incorrect #define pattern)
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : warning 236: unknown parameter in substitution (incorrect #define pattern)
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : warning 213: tag mismatch: expected tag "MySQL", but found "MySql"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : error 029: invalid expression, assumed zero
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : error 029: invalid expression, assumed zero
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : error 001: expected token: ";", but found "]"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : fatal error 107: too many error messages on one line

    Compilation aborted.

    Pawn compiler 3.10.10              Copyright (c) 1997-2006, ITB CompuPhase


    5 Errors.
    [Finished in 939ms]  

     

    fac un sistem de register si login cu o baza de date si vr sa dau compile da nu merge, v-am lasat erorile mai sus daca m-ar putea  ajuta cnv as-i fii recunoscator

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