SA-MP Forums Archive
include... - 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: include... (/showthread.php?tid=401700)



include... - a.z.a.r - 23.12.2012

hey guys,
i've made a simple include but i need help... i'm a begneer scripter...

Код:
/*
Include Made by A.Z.A.R
*/

#if defined azar_include
#endif

//my cmds

native GetMeAmmo(weapon, weapon_ammo);
ok this error appears... when i use it in pawno. (as a command)
Код:
E:\SWSetup\SP32105\tgGames\pawno\fras.pwn(94) : error 017: undefined symbol "GetMeAmmo"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
ok, so where did i made a mistake?
(this is my first include)


Re: include... - Konstantinos - 23.12.2012

GetMeAmmo should be a stock or define of a function.


Re: include... - a.z.a.r - 23.12.2012

i made get me ammo my self... so i have to define it?