how to add "Useful Functions" to my scripts? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to add "Useful Functions" to my scripts? (
/showthread.php?tid=219269)
how to add "Useful Functions" to my scripts? -
1126 - 01.02.2011
i want to add
https://sampwiki.blast.hk/wiki/Useful_Functions
to my scripts.
But after i wrote "#include <uf>" , it causes some errors:
D:\GTA San Andreas\GTA San Andreas\pawno\include\uf.inc(43) : warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS")
D:\GTA San Andreas\GTA San Andreas\pawno\include\uf.inc(297
: error 025: function heading differs from prototype
D:\GTA San Andreas\GTA San Andreas\pawno\include\uf.inc(2979) : error 021: symbol already defined: "strrest"
D:\GTA San Andreas\GTA San Andreas\gamemodes\44444.pwn(254) : error 021: symbol already defined: "OnVehicleSpawn"
how to solve it?thanks.
Respuesta: how to add "Useful Functions" to my scripts? -
ipsBruno - 01.02.2011
Delete 'define MAX_PICKUPS' in uf.inc..
Re: how to add "Useful Functions" to my scripts? -
R16RACA - 01.02.2011
Quote:
error 021: symbol already defined: "strrest"
D:\GTA San Andreas\GTA San Andreas\gamemodes\44444.pwn(254) : error 021: symbol already defined: "OnVehicleSpawn"
|
you already have these in your script
Quote:
error 025: function heading differs from prototype
|
The forward is different to the function
NOTE: its been a while since i had different to prototype, so i may be wrong