Jump to content

Question

Posted

Salut, am si eu erorile astea, ma puteti ajuta va rog?

D:\BigZoneGM\gamemodes\BigZoneGM.pwn(3909) : error 029: invalid expression, assumed zero
D:\BigZoneGM\gamemodes\BigZoneGM.pwn(3909) : error 029: invalid expression, assumed zero
D:\BigZoneGM\gamemodes\BigZoneGM.pwn(3909) : error 001: expected token: ")", but found ";"
D:\BigZoneGM\gamemodes\BigZoneGM.pwn(3909) : fatal error 107: too many error messages on one line

Linie: mysql_store_result();

Va rog, daca stiti, sa ma puteti ajuta 🙂

12 answers to this question

Recommended Posts

  • 0
Posted (edited)
Acum 42 minute, Albert Constantin a spus:

Salut, am si eu erorile astea, ma puteti ajuta va rog?

D:\BigZoneGM\gamemodes\BigZoneGM.pwn(3909) : error 029: invalid expression, assumed zero
D:\BigZoneGM\gamemodes\BigZoneGM.pwn(3909) : error 029: invalid expression, assumed zero
D:\BigZoneGM\gamemodes\BigZoneGM.pwn(3909) : error 001: expected token: ")", but found ";"
D:\BigZoneGM\gamemodes\BigZoneGM.pwn(3909) : fatal error 107: too many error messages on one line

Linie: mysql_store_result();

Va rog, daca stiti, sa ma puteti ajuta 🙂

Nu ar trebuii sa ai erori daca doar ai instalat gamemode-ul, daca ai schimbat plugins/includes cu unele mai noi s-ar putea sa primesti erori pentru ca modul de gandire al include-urilor se schimba din update in update, ce iti recomand e sa instalezi din nou arhiva bigzone si sa pui folder-ul pawno si plugins din nou din aceea arhiva si vezi daca merge, daca nu arata toata functia uneori eroarea nu este exact la linia care ti-o spune

Edited by Koqs
  • 0
Posted
2 minutes ago, Koqs said:

Nu ar trebuii sa ai erori daca doar ai instalat gamemode-ul, daca ai schimbat plugins/includes cu unele mai noi s-ar putea sa primesti erori pentru ca modul de gandire al include-urilor se schimba din update in update, ce iti recomand e sa instalezi din nou arhiva bigzone si sa pui folder-ul pawno si plugins din nou din aceea arhiva si vezi daca merge, daca nu arata toata functia uneori eroarea nu este exact la linia care ti-o spune

Nope, uite aici toata functia:

public MySQLCheckCar(carname[])
{
    new query[128],
        escstr[MAX_PLAYER_NAME];
    mysql_real_escape_string(carname, escstr);
    format(query, sizeof(query), "SELECT `ID` FROM stock WHERE `Car` = '%s'", escstr);
    mysql_query(SQL,query);
    mysql_store_result();
    if (mysql_num_rows()==0);
    {
        mysql_free_result();
        return 0;
    }
    else
    {
        new strid[32],
            intid;
        mysql_fetch_row(strid);
        intid = strval(strid);
        mysql_free_result();
        return intid;
    }
}

  • 0
Posted
Acum 49 minute, Albert Constantin a spus:

Nope, uite aici toata functia:

public MySQLCheckCar(carname[])
{
    new query[128],
        escstr[MAX_PLAYER_NAME];
    mysql_real_escape_string(carname, escstr);
    format(query, sizeof(query), "SELECT `ID` FROM stock WHERE `Car` = '%s'", escstr);
    mysql_query(SQL,query);
    mysql_store_result();
    if (mysql_num_rows()==0);
    {
        mysql_free_result();
        return 0;
    }
    else
    {
        new strid[32],
            intid;
        mysql_fetch_row(strid);
        intid = strval(strid);
        mysql_free_result();
        return intid;
    }
}

Ai schimbat ceva adaugat sistem 

  • 0
Posted
Just now, Koqs said:

Ai schimbat ceva adaugat sistem 

Tot ce am schimbat a fost o comanda, am schimbat din /spawnveh in /vspawn, atat, ieri am lucrat putin pe el, si chiar l-am bagat pe local host, a compilat perfect, fara nici o eroare, abia azi mi-a dat erori

 

  • 0
Posted
Acum 10 minute, Albert Constantin a spus:

@Koqsti-am dat add pe discord, daca e, vorbim acolo, bine? sunt Yellow#7382

Acum nu pot, intra pe gamemode original si vezi ce ai schimbat la aceea functie/ comanda si inceraca sa rezolvi

  • 0
Posted (edited)
4 minutes ago, Koqs said:

Acum nu pot, intra pe gamemode original si vezi ce ai schimbat la aceea functie/ comanda si inceraca sa rezolvi

Sa-ti zic ce am facut, deci:

Am compilat si mi-a dat asta:

 

C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4342) : error 017: undefined symbol "mysql_store_result"


C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4343) : error 017: undefined symbol "mysql_num_rows"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4345) : error 017: undefined symbol "mysql_free_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4352) : error 017: undefined symbol "mysql_fetch_row"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4354) : error 017: undefined symbol "mysql_free_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4364) : error 017: undefined symbol "mysql_store_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4365) : error 017: undefined symbol "mysql_num_rows"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4367) : error 017: undefined symbol "mysql_free_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4374) : error 017: undefined symbol "mysql_fetch_row"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4376) : error 017: undefined symbol "mysql_free_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4388) : error 017: undefined symbol "mysql_store_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4389) : error 017: undefined symbol "mysql_num_rows"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4391) : error 017: undefined symbol "mysql_free_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4398) : error 017: undefined symbol "mysql_fetch_row"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(4400) : error 017: undefined symbol "mysql_free_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(14390) : error 017: undefined symbol "mysql_insert_id"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(14402) : error 017: undefined symbol "mysql_insert_id"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(14648) : error 017: undefined symbol "mysql_insert_id"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(15086) : error 017: undefined symbol "mysql_store_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(15087) : error 017: undefined symbol "mysql_num_rows"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(15088) : error 017: undefined symbol "mysql_free_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(15090) : error 017: undefined symbol "mysql_store_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(15091) : error 017: undefined symbol "mysql_num_rows"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(15092) : error 017: undefined symbol "mysql_free_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(15094) : error 017: undefined symbol "mysql_store_result"
C:\Users\marcu\OneDrive\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(15095) : error 017: undefined symbol "mysql_num_rows"

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
[Finished in 24.6s]

Dupa care am definit mysql_store_result, si mi-a dat ceea ce e mai sus.

Edited by Albert Constantin
  • 0
Posted (edited)
3 hours ago, Gireada said:

Problema ta e de aici

 if (mysql_num_rows()==0);

Scoate ; 

nope, exact aceleasi erori. daca vrei, si ai timp, add pe discord la Yellow#7382, si discutam acolo

 

Edited by Albert Constantin
  • 0
Posted (edited)

Nu am discord. Posteaza aici noile erori si liniile ca sa vada si ceilalti.

 

3909) : error 001: expected token: ")", but found ";"

Iti da de la o un punct si virgula in plus.

Alta virgula in plus nu am vazut in codul postat de tine.

Edited by Gireada
COMPLETARE

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

  • 0
Posted

if (mysql_num_rows()==0);

Cum a zis gireada in aceasta linie ai folosit adica

Daca mysql_num_rows == 0 sa se intample un lucru, pentru ca ai pus ; nu se va mai executa si o va lua ca o simpla linie cu o functie pe ea, scoate ; si incearca sa compilezi

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.