SA-MP Forums Archive
cant use uf.inc with dutils.inc - 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: cant use uf.inc with dutils.inc (/showthread.php?tid=259395)



cant use uf.inc with dutils.inc - xalith - 04.06.2011

iv'e used UF.inc many times and it worked perfectly, today i tried to use it in a script where i already had dutils.inc and i got the following errors,
pawn Код:
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(458) : error 021: symbol already defined: "Time"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(463) : error 021: symbol already defined: "Time"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3474) : error 021: symbol already defined: "mktime"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3504) : error 021: symbol already defined: "ValidEmail"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3509) : error 021: symbol already defined: "Now"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3517) : error 021: symbol already defined: "HexToInt"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3540) : error 021: symbol already defined: "IntToHex"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3561) : error 021: symbol already defined: "StrToInt"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3566) : error 021: symbol already defined: "IntToStr"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3573) : error 021: symbol already defined: "trunc"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3578) : error 021: symbol already defined: "SetPlayerMoney"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3584) : error 021: symbol already defined: "fcopy"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3603) : error 021: symbol already defined: "fcopytextfile"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3624) : error 021: symbol already defined: "frename"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3638) : error 021: symbol already defined: "frenametextfile"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3653) : error 021: symbol already defined: "StripNewLine"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3674) : error 021: symbol already defined: "ret_memcpy"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3702) : error 021: symbol already defined: "copy"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3724) : error 021: symbol already defined: "delete"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3737) : error 021: symbol already defined: "set"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3748) : error 021: symbol already defined: "equal"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3760) : error 021: symbol already defined: "mod"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3765) : error 021: symbol already defined: "div"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3770) : error 021: symbol already defined: "num_hash"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3781) : error 021: symbol already defined: "hash"
C:\Users\USER\Desktop\samp 0.3c r2 dev\samp03\pawno\include\uf.inc(3789) : error 021: symbol already defined: "strreplace"

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


26 Errors.
should i edit the include and remove all those already defined things??


Re: cant use uf.inc with dutils.inc - Calgon - 04.06.2011

UF.inc contains functions from dutils if I remember, so you can try comment dutils' include part out.


Re: cant use uf.inc with dutils.inc - xalith - 04.06.2011

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
UF.inc contains functions from dutils if I remember, so you can try comment dutils' include part out.
that was the first thing i did, but then i got this error
pawn Код:
C:\Users\USER\Desktop\samp03 LINUX\gamemodes\bg.pwn(19) : error 017: undefined symbol "strtok"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
im gonna try to copy the strtok part from dutils to uf.


Re: cant use uf.inc with dutils.inc - xalith - 04.06.2011

done fixed it