AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How do I declare a function prototype? (https://forums.alliedmods.net/showthread.php?t=27585)

Geesu 04-24-2006 23:53

How do I declare a function prototype?
 
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?

Geesu 04-24-2006 23:58

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

BAILOPAN 04-25-2006 00:19

public isn't deprecate :O

it's forward, forward means "forward declaration"


All times are GMT -4. The time now is 05:06.

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