SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 23/05/2019, 02:32 AM   #1
sergioduran11
Little Clucker
 
sergioduran11's Avatar
 
Join Date: Jan 2018
Posts: 21
Reputation: 0
Default function heading differs from prototype [Error MySQL]

Hi, I have updated the plugin MySQL, Everything works fine but when I compile it gives me error in the following line

21432

Someone can helpme?

Code:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
{

	return 1;
}
This is the error...

error 025: function heading differs from prototype
Thanks.
sergioduran11 is offline   Reply With Quote
Old 23/05/2019, 02:35 AM   #2
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,180
Reputation: 384
Default Re: function heading differs from prototype [Error MySQL]

pawn Code:
forward OnQueryError(errorid, const error[], const callback[], const query[], MySQL:handle);
I'm pretty sure that's how It's defined so change your parameters to this.
__________________
Quote:
Originally Posted by Andy
I offer paid scripting services, I can do anything except mapping because fuck mapping.

[Github]:Link [Gists]:Link [Forum]:Link [Server]:Link [Discord]:Link


RogueDrifter is offline   Reply With Quote
Old 23/05/2019, 02:43 AM   #3
sergioduran11
Little Clucker
 
sergioduran11's Avatar
 
Join Date: Jan 2018
Posts: 21
Reputation: 0
Default Re: function heading differs from prototype [Error MySQL]

I already had it like that, I replaced it in case something but it did not work

I am using MySQL R41-4
sergioduran11 is offline   Reply With Quote
Old 23/05/2019, 03:21 AM   #4
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Location: 🇩🇪
Posts: 1,620
Reputation: 535
Default Re: function heading differs from prototype [Error MySQL]

Check the mysql include. Find the forward declaration for the function and you can copy its parameters.
NaS is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] error 025: function heading differs from prototype adilon PortuguÍs/Portuguese 9 20/01/2015 09:37 PM
error 025: function heading differs from prototype Drago987 Scripting Help 5 06/03/2014 09:41 PM
error 025: function heading differs from prototype DamonD Scripting Help 0 12/11/2013 08:09 PM
error 025: function heading differs from prototype Nahin Scripting Help 4 25/07/2013 09:01 PM
error 025: function heading differs from prototype duuuwh PortuguÍs/Portuguese 8 03/10/2012 10:37 PM


All times are GMT. The time now is 09:00 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.