Need me 1 code and fix errors [+Rep]
#1

1.How to fix this errors?

error 021: symbol already defined: "strtok"
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

2.When i go to a place and press the scroll dialog open.
Reply
#2

It would be useful if you showed a bit of code, then I'd try to help. At least the lines on which the errors are. For strtok, as the error says, it's defined twice. Either remove it from your gamemode if you have one, or unload an include that has it included.
Reply
#3

yeah show us the error lines
Reply
#4

(219) : error 021: symbol already defined: "strtok"
(234) : error 047: array sizes do not match, or destination array is too small
(241) : error 047: array sizes do not match, or destination array is too small
(611) : error 047: array sizes do not match, or destination array is too small
(72 : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Значи за кода. Player отиде на дадена position и натисне Scroll да му се отвори диалогов прозорец. Сега разбра ли?
Reply
#5

Lines as in part of the script - whatever is on those lines. Really, doubt anyone can fix an error looking just at the message, if he has no code in front of him.
Reply
#6

I give you filterscript to fix errors?

So for the code. Player went to a position and press Scroll to open its dialog box. Now do you understand?
Reply
#7

I'd need all the includes you have, and it's better if you post snippets of the code here, just the lines that errors are on. And yeah, I understand but that kind of has no relevance. Errors are caused by the code, before compilation, not by player's input to a dialog.

I.e take out code from line 234 where the error appears, and post it here. I'll take a look at it that way
Reply
#8

http://pastebin.com/Qzqr9SpK
Reply
#9

Remove or comment lines 218-235. Looking at array errors, they all have "strtok" as a value, so it should work (I hope). Report back, if not.
Reply
#10

(222) : error 047: array sizes do not match, or destination array is too small
(592) : error 047: array sizes do not match, or destination array is too small
(709) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)