A little errors that i got
#1

Hello all... i was editing a mod, but i get stucked on the way to compile it.. it says this:

Код:
C:\Users\****\Downloads\EuropeRP\gamemodes\EURP.pwn(607) : error 025: function heading differs from prototype
../include/g_mysql.inc(428) : warning 235: public function lacks forward declaration (symbol "OnQueryError")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
any help? thanks... :S

EDIT oh i forgot the lines, here:

607:

Код:
forward Get3DZone(X, Y, zonename, size);
428:

Код:
#define BUYTOYSGOLD3    10139
Reply
#2

First problem, there is no [].
pawn Код:
forward Get3DZone(X, Y, zonename[], size);
Second problem, the problem is in your g_mysql.inc Include and not in your script.
Post the line 428 in g_mysql.inc
Reply
#3

Quote:
Originally Posted by MouseBreaker
Посмотреть сообщение
First problem, there is no [].
pawn Код:
forward Get3DZone(X, Y, zonename[], size);
Second problem, the problem is in your g_mysql.inc Include and not in your script.
Post the line 428 in g_mysql.inc
Gime sec...
and here it is:

Код:
#if defined mysql_included
	#endinput
#endif
#define mysql_included

//Definitions

#define mysql_fetch_row(%1) mysql_fetch_row_format(%1,"|")
#define mysql_get_field(%1,%2) mysql_fetch_field_row(%2,%1)

//Native functions

native mysql_affected_rows(connectionHandle = 1);
native mysql_close(connectionHandle = 1);
native mysql_connect(const host[],const user[],const database[],const password[]);
native mysql_debug(enable = 1);
native mysql_errno(connectionHandle = 1);
native mysql_fetch_int(connectionHandle = 1);
native mysql_fetch_field(number,dest[],connectionHandle = 1);
native mysql_fetch_field_row(string[],const fieldname[],connectionHandle = 1);
native mysql_fetch_float(&Float:result,connectionHandle = 1);
native mysql_fetch_row_format(string[],const delimiter[] = "|",connectionHandle = 1);
native mysql_field_count(connectionHandle = 1);
native mysql_free_result(connectionHandle = 1);
native mysql_get_charset(destination[],connectionHandle = 1);
native mysql_insert_id(connectionHandle = 1);
native mysql_num_rows(connectionHandle = 1);
native mysql_num_fields(connectionHandle = 1);
native mysql_ping(connectionHandle = 1);
native mysql_query(query[],resultid = (-1),extraid = (-1),connectionHandle = 1);
native mysql_real_escape_string(const source[],destination[],connectionHandle = 1);
native mysql_reconnect(connectionHandle = 1);
native mysql_reload(connectionHandle = 1) = mysql_reconnect;
native mysql_retrieve_row(connectionHandle = 1);
native mysql_set_charset(charset[],connectionHandle = 1);
native mysql_stat(const destination[],connectionHandle = 1);
native mysql_store_result(connectionHandle = 1);
native mysql_warning_count(connectionHandle = 1);

//Callback

forward OnQueryFinish(query[], resultid, extraid, connectionHandle);
lol there isn't line 428, there are only 50 lines

EDIT:
Still not working...

Quote:
Originally Posted by MouseBreaker
Посмотреть сообщение
First problem, there is no [].
pawn Код:
forward Get3DZone(X, Y, zonename[], size);
Second problem, the problem is in your g_mysql.inc Include and not in your script.
Post the line 428 in g_mysql.inc
EDIT2:: Lol i posted wrong include sorry, here is the line 428:
Код:
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle)
Reply
#4

// sorry dp
Reply
#5

Well, post the function here.
pawn Код:
public Get3DZone
And for the include, are you sure you open the right include? g_mysql.inc, search it in your include\ folder or in pawno\include folder.
Reply
#6

Lol i posted wrong include sorry, here is the line 428:
Код:
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle)
[/QUOTE]
Reply
#7

pawn Код:
forward OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle);
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle)
This should fix it
Reply
#8

Quote:
Originally Posted by MadafakaPro
Посмотреть сообщение
pawn Код:
forward OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle);
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle)
This should fix it
Do i place
Код:
forward OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle);
in pawn or in the include?
Reply
#9

In pawn
Reply
#10

Quote:
Originally Posted by MadafakaPro
Посмотреть сообщение
In pawn
Thank you!! Now i just lefted with the Get3DZone... :P
EDIT: i go sleep, i will check it out tomorrow guys ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)