Problem with uf.inc
#1

Hey there, im having a few problems with the "uf.inc"

I simply tried to compile the following script:

pawn Код:
#include <a_samp>
#include <dini>
#include <uf>

public OnFilterScriptInit()
{
    print("House System"); // I may be releasing it - depending on the work and effort, and audience for it :)
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
however i get the following errors:

pawn Код:
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(312) : warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS")
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(728) : error 021: symbol already defined: "Time"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(733) : error 021: symbol already defined: "Time"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3654) : error 021: symbol already defined: "strtok"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3764) : error 021: symbol already defined: "mktime"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3794) : error 021: symbol already defined: "ValidEmail"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3799) : error 021: symbol already defined: "Now"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3807) : error 021: symbol already defined: "HexToInt"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3830) : error 021: symbol already defined: "IntToHex"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3851) : error 021: symbol already defined: "StrToInt"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3856) : error 021: symbol already defined: "IntToStr"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3863) : error 021: symbol already defined: "trunc"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3868) : error 021: symbol already defined: "SetPlayerMoney"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3874) : error 021: symbol already defined: "fcopy"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3893) : error 021: symbol already defined: "fcopytextfile"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3914) : error 021: symbol already defined: "frename"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3928) : error 021: symbol already defined: "frenametextfile"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3943) : error 021: symbol already defined: "StripNewLine"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3964) : error 021: symbol already defined: "ret_memcpy"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(3992) : error 021: symbol already defined: "copy"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(4014) : error 021: symbol already defined: "delete"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(4027) : error 021: symbol already defined: "set"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(4038) : error 021: symbol already defined: "equal"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(4050) : error 021: symbol already defined: "mod"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(4055) : error 021: symbol already defined: "div"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(4060) : error 021: symbol already defined: "num_hash"
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(4071) : error 021: symbol already defined: "hash"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
What is wrong? And could somebody supply me with a new file of uf.inc?

Thanks
Ash
Reply
#2

Well that`s strange.. How about this... Open uf.inc and change all the things that are erronated there, like from : X to X2 or something like that ...
Reply
#3

Ah, wait, if i remove
pawn Код:
#include <dini>
it leaves me with 2 warnings:
pawn Код:
C:\Users\Ashley Hardy\SA-MP Stuff!\pawno\include\uf.inc(312) : warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS")
C:\Users\Ashley Hardy\SA-MP Stuff!\gamemodes\houses.pwn(14) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#4

1 warning - simple - in your script there is already defined MAX_PICKUPS

So let me explane -
That "MAX_PICKUPS" is defined in your script and in that include..

Second warning..
Just warns about unused things in script..
Reply
#5

Quote:
Originally Posted by GaGlets®
Посмотреть сообщение
1 warning - simple - in your script there is already defined MAX_PICKUPS

So let me explane -
That "MAX_PICKUPS" is defined in your script and in that include..

Second warning..
Just warns about unused things in script..
Please read the first post, thats all i have in my script. I havent defined anything other than whats in my first post (nothing)
Reply
#6

Read your error again ...

Quote:

\pawno\include\uf.inc(312) : warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS")

Remove that and you'll be fine.
Reply
#7

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Please read the first post, thats all i have in my script. I havent defined anything other than whats in my first post (nothing)
Then recheck uf.inc... check if is there any MAX_PICKUPS
Recheck dini.inc too.. if there is then redefine..

because its already defined in a_samp.inc..
Reply
#8

Ok, thanks
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)