Jump to content

Question

Posted

Salut baieti am si eu o mica problema am inceput sa fac un gm de la 0 si imi da cateva erori nu stiu ce are  de nu merge

 

MA PUTETI AJUTA VA ROG

 

C:\Users\MihaiFlorin\Desktop\gm de la 0\pawno\dela0.pwn(8) : error 020: invalid symbol name ""
C:\Users\MihaiFlorin\Desktop\gm de la 0\pawno\dela0.pwn(16) : error 010: invalid function or declaration
C:\Users\MihaiFlorin\Desktop\gm de la 0\pawno\dela0.pwn(35) : error 076: syntax error in the expression, or invalid function call
C:\Users\MihaiFlorin\Desktop\gm de la 0\pawno\dela0.pwn(35) : error 029: invalid expression, assumed zero
C:\Users\MihaiFlorin\Desktop\gm de la 0\pawno\dela0.pwn(35) : error 029: invalid expression, assumed zero
C:\Users\MihaiFlorin\Desktop\gm de la 0\pawno\dela0.pwn(35) : fatal error 107: too many error messages on one line

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


6 Errors.

la eroarea 8 este de aici enum pinfo {

la eroare 16 este de aici  new PlayerInfo[MAX_PLAYER][pInfo]:

la eroarea 35 este de aici    SQL = mysql_connect("127.0.0.1", "server_882", "server_487_server", "a23h4je73");

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

la linia 8 

enum pInfo {

//(tu ai pus cu i mic)

 

16: 

new PlayerInfo[MAX_PLAYERS][pInfo];

//ai scris player si nu players

 

la 35 nu stiu, poate ai uitat mai sus o acolada sau o virgula cv, sau incearca sa scoti SQL =

Edited by NERS
  • 0
Posted

La linia 35, verifica daca ai SQL definit, sau creeaza-ti SQL = mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password);

Si la inceputul gamemode-ului poti adauga. 

#define mysql_host "localhost"
#define mysql_user "root"
#define mysql_password ""
#define mysql_database "dbname"

P.S: poti sa le definesti si host, user,database,password.

 

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