Compiling Error
#1

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

download Utils and put that in pawno/includes and then open script compile it
Reply
#3

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
Reply
#4

can you show us code ! ? and btw symbol strtok is already defined
Reply
#5

Which parts of the code?
Reply
#6

did you saw that error lines ?
post code of that lines
Reply
#7

http://pastebin.com/1nRWHLR3

Theres the code ( from line 24877 to 28486)

Its the Ravens RP script btw.
Reply
#8

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).
Reply
#9

I think changing it is WAY WAY WAY above my scripting capability's, so how would i change this 128 256 thing?
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)