Raised This Month: $12 Target: $400
 3% 

error 025: function heading differs from prototype


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Raven
Junior Member
Join Date: Mar 2004
Old 03-29-2004 , 10:40   error 025: function heading differs from prototype
Reply With Quote #1

Hello there,

Wtf can cause this error:
Code:
error 025: function heading differs from prototype
I just copied my scripting folder out of the amxx folder and moved it to another location on my harddisk.
Raven is offline
BAILOPAN
Join Date: Jan 2004
Old 03-29-2004 , 10:42  
Reply With Quote #2

what plugin?
__________________
egg
BAILOPAN is offline
Raven
Junior Member
Join Date: Mar 2004
Old 03-29-2004 , 10:45  
Reply With Quote #3

My own but it definately works and compiles fine when I move the scripting folder back into the amxx folder.
Raven is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-29-2004 , 11:58   umm
Reply With Quote #4

I get that too when doing do-while statements

Quote:
error 025: function heading differs from prototype
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
T(+)rget
Senior Member
Join Date: Mar 2004
Old 03-30-2004 , 02:01  
Reply With Quote #5

If your using a forward function for example:

Touch(id1, id2)

and in your script you write:

Touch(pToucher, pTouched)

that will cause that error.
T(+)rget is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-30-2004 , 02:12   Hrm?
Reply With Quote #6

How do I fix that kinda error?
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
Raven
Junior Member
Join Date: Mar 2004
Old 03-30-2004 , 03:59  
Reply With Quote #7

Well, I dont know exsactly but it seems it's all about my hd path e.g.:

if it is:
D:\amxx\pluginsources\scripting or
D:\amxx\pluginsources

I get the error

if it is:

D:\amxx\amxx\scripting or
D:\amxx\ps\scripting

It works, wtf is this ??? So I tried around a bit and it seems in some folders it works in other it dont works.

is there anything about the foldername length ?
Raven is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-30-2004 , 05:35  
Reply With Quote #8

are you sure you have the same include files in every folder? ;]
__________________
hello, i am pm
PM is offline
Raven
Junior Member
Join Date: Mar 2004
Old 03-30-2004 , 05:37  
Reply With Quote #9

yup the folders are 1:1 copies.
Raven is offline
T(+)rget
Senior Member
Join Date: Mar 2004
Old 03-30-2004 , 06:42  
Reply With Quote #10

Quote:
Originally Posted by MagicShot
How do I fix that kinda error?
Well its simple, read the include file your using and copy exactly what it says.

Example from VexdUM vexd_utilities.inc:

forward EntityTouch(pToucher, pTouched);

If you write in your script EntityTouch(id1, id2) its incorrect it needs to be the same as the forward function from the include file, EntityTouch(pToucher, pTouched)

Only forwards cause prototype header errors, normal natives are fine.
T(+)rget is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 09:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode