how to add "Useful Functions" to my scripts?
#1

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.
Reply
#2

Delete 'define MAX_PICKUPS' in uf.inc..
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)