SA-MP Forums Archive
Help me with this Error :( - 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: Help me with this Error :( (/showthread.php?tid=463554)



Help me with this Error :( - Shaden - 12.09.2013

Hello guys..
I got some errors at my script

C:\Documents and Settings\Administrator\Desktop\NGRP 0.3x\gamemodes\NGRP_dfu.pwn(302 : error 025: function heading differs from prototype
C:\Documents and Settings\Administrator\Desktop\NGRP 0.3x\gamemodes\NGRP_dfu.pwn(3029) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrator\Desktop\NGRP 0.3x\gamemodes\NGRP_dfu.pwn(3036) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Administrator\Desktop\NGRP 0.3x\gamemodes\NGRP_dfu.pwn(3036) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\NGRP 0.3x\gamemodes\NGRP_dfu.pwn(3036) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\NGRP 0.3x\gamemodes\NGRP_dfu.pwn(3036) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\NGRP 0.3x\gamemodes\NGRP_dfu.pwn(3036) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Administrator\Desktop\NGRP 0.3x\gamemodes\NGRP_dfu.pwn(3036) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\NGRP 0.3x\gamemodes\NGRP_dfu.pwn(3036) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.



Please if you can fix it help me...
waiting for reply.


Re: Help me with this Error :( - IceBilizard - 12.09.2013

Show your Error lines


Re: Help me with this Error :( - Shaden - 12.09.2013

C:\Documents and Settings\Administrator\Desktop\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(302 : error 025: function heading differs from prototype

C:\Documents and Settings\Administrator\Desktop\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3029) : error 025: function heading differs from prototype

C:\Documents and Settings\Administrator\Desktop\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : error 012: invalid function call, not a valid address

C:\Documents and Settings\Administrator\Desktop\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : warning 215: expression has no effect

C:\Documents and Settings\Administrator\Desktop\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : warning 215: expression has no effect

C:\Documents and Settings\Administrator\Desktop\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : warning 215: expression has no effect

C:\Documents and Settings\Administrator\Desktop\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : error 001: expected token: ";", but found ")"

C:\Documents and Settings\Administrator\Desktop\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Administrator\Desktop\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : fatal error 107: too many error messages on one line


Re: Help me with this Error :( - AA9 - 12.09.2013

Show us some script lines.


Re: Help me with this Error :( - Shaden - 12.09.2013

Okay


Re: Help me with this Error :( - Shaden - 12.09.2013

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


cache_get_data(rows, fields, MainPipeline);
}


Re: Help me with this Error :( - Konstantinos - 12.09.2013

Goto pawno\include directory and open a_mysql.inc file. At the end, it should have:
pawn Код:
forward OnQueryFinish( /* PARAMETERS HERE */ );
Those parameters changed in some version and they're not the same as the above.

Copy the parameters and then just use:
pawn Код:
public OnQueryFinish( /* THE PARAMETERS HERE */ )
{
    // rest



Re: Help me with this Error :( - Shaden - 12.09.2013

nvm!!


Re: Help me with this Error :( - AA9 - 12.09.2013

Error 025 means, that your function parameters are not same, what they are in a_MySQL.inc file.
And why you are forwarding OnQueryFinish function?
https://sampwiki.blast.hk/wiki/MySQL