Raised This Month: $ Target: $400
 0% 

How do I declare a function prototype?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 04-24-2006 , 23:53   How do I declare a function prototype?
Reply With Quote #1

Basically I have so many damn functions in war3ft I need to start making function prototypes in order to do this...

(header files with function names etc...)

I tried doing like:

Code:
forward _DOD_showMoney(parm[3]);
and
Code:
native _DOD_showMoney(parm[3]);
and
Code:
public _DOD_showMoney(parm[3]);

But these give me errors, what is the proper way to do a function prototype?
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 04-24-2006 , 23:58  
Reply With Quote #2

ok nevermind i'm a retard, but what is the proper way to do it in Pawn?

public; is depreciated... so is it forward; ? THat just seems weird
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
BAILOPAN
Join Date: Jan 2004
Old 04-25-2006 , 00:19  
Reply With Quote #3

public isn't deprecate :O

it's forward, forward means "forward declaration"
BAILOPAN 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 05:06.


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