Compiling Error - 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: Compiling Error (
/showthread.php?tid=509687)
Compiling Error -
stueycow - 27.04.2014
Hello, when compiling the script i have i get
Код:
bla/bla/bla/bla/XX.pwn : fatal error 100: cannot read from file: "utils"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
What would be "Utils"? and how would i fix this.
Thanks in advanced
Re: Compiling Error -
JeaSon - 27.04.2014
download Utils and put that in pawno/includes and then open script compile it
Re: Compiling Error -
stueycow - 27.04.2014
Thanks that worked...
but now...
Код:
Bla\bla/xx.pwn(24877) : error 021: symbol already defined: "strtok"
Bla\bla/xx.pwn(24892) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(26407) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(26467) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(26520) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(27195) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(27254) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(27935) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(27963) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(27974) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(28034) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(28346) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(28373) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(28403) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(28411) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(28445) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(28453) : error 047: array sizes do not match, or destination array is too small
Bla\bla/xx.pwn(28486) : error 047: array sizes do not match, or destination array is too small
How would i fix this?
Thanks again
Re: Compiling Error -
JeaSon - 27.04.2014
can you show us code ! ? and btw symbol strtok is already defined
Re: Compiling Error -
stueycow - 27.04.2014
Which parts of the code?
Re: Compiling Error -
JeaSon - 27.04.2014
did you saw that error lines ?
post code of that lines
Re: Compiling Error -
stueycow - 27.04.2014
http://pastebin.com/1nRWHLR3
Theres the code ( from line 24877 to 28486)
Its the Ravens RP script btw.
Re: Compiling Error -
Konstantinos - 27.04.2014
I think I've read a thread few years ago saying that when "cmd" had size of 128 and used strtok, it gave the errors you got. By doing it 256 fixed that - I'm not sure if that's the solution so I strongly recommend you
NOT to use strtok. Use sscanf instead. Also dcmd and strcmp are both bad. ZCMD and y_commands are better and very fast! You should really consider of changing them (I'm talking about that awful combination of strtok and strcmp for commands).
Re: Compiling Error -
stueycow - 27.04.2014
I think changing it is WAY WAY WAY above my scripting capability's, so how would i change this 128 256 thing?
Re: Compiling Error -
gtakillerIV - 27.04.2014
Then I'd recommend you to read tutorials and start off by doing easy stuff and when you get the hang of it, you can move to the more advanced stuff.