SA-MP Forums Archive
errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: errors (/showthread.php?tid=462371)



errors - Shirley - 06.09.2013

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(302 : error 025: function heading differs from prototype

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3029) : error 025: function heading differs from prototype

Quote:

// Callbacks
"line3028" forward OnQueryFinish(resultid, extraid, handleid);
"line3029" public OnQueryFinish(resultid, extraid, handleid)
{

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : warning 215: expression has no effect

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : warning 215: expression has no effect

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : warning 215: expression has no effect

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : error 001: expected token: ";", but found ")"

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : fatal error 107: too many error messages on one line

Quote:

"line3036" cache_get_data(rows, fields, MainPipeline);
}




Re: errors - Konstantinos - 06.09.2013

Is the MySQL version you're using R7 and above? It seems to use an old include of a_mysql but a script with threaded queries.

Open a_mysql.inc from pawno\include and go at the bottom of it. You'll see the line:
pawn Код:
forward OnQueryFinish( ... /* blabla.. */ );
Get the parameters from there.


Re: errors - Shirley - 06.09.2013

forward OnQueryFinish(query[], resultid, extraid, connectionHandle);


Re: errors - Konstantinos - 06.09.2013

So, replace:
pawn Код:
forward OnQueryFinish(resultid, extraid, handleid);
public OnQueryFinish(resultid, extraid, handleid)
with:
pawn Код:
public OnQueryFinish(query[], resultid, extraid, connectionHandle)
at your .pwn file.

By the way, what version do you use?


Re: errors - Shirley - 06.09.2013

new erros

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(1339) : error 017: undefined symbol "GetPlayerNameExt"
C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3034) : error 017: undefined symbol "handleid"
C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3034) : error 079: inconsistent return types (array & non-array)




i don't know what's my version -__-


Re: errors - Shirley - 06.09.2013

mind give me your skype? so i can talk to you?


Re: errors - Konstantinos - 06.09.2013

I don't know what exactly GetPlayerNameExt should do, but it should be added as a function.
pawn Код:
stock GetPlayerNameExt( /* some parameters here, most likely the "playerid" */ )
{
    // some code
}
You must declared a variable as global one (under includes, defines) to store the mysql connection id.

Where do you store it when you're using mysql_connect function? Use that variable instead.

It's better to show us few lines close (included line 3034 too).


Re: errors - Shirley - 06.09.2013

mind give me your skype so i can give you the whole script and fix it ?