compile error
#1

I'm using gamemode raven's roleplay and when i compile I got this

E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(25115) : error 021: symbol already defined: "strtok"
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(25130) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(26641) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(26701) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(26754) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(27422) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(27481) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28162) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28190) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28201) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28261) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28530) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28557) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28587) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28595) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28629) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28637) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28670) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28715) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(2877 : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28836) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28844) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28879) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(28887) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(29114) : error 047: array sizes do not match, or destination array is too small
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(2916 : error 047: array sizes do not match, or destination array is too small

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

this is the script from line 25115 to 29168
http://pastebin.com/SkQpZ2XA

plz help me
sorry for my bad english
Reply
#2

Im not sure about it but try out this:

pawn Code:
new string[128];
to
pawn Code:
new string[512];
change all strings from 128 to 512

Because if I am not wrong the strings numbers are too small as the error says

Im sorry if it is wrong but Im new into scripting so and I never had that error atm.
Reply
#3

It not work but thanks for your help
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=134573
perhaps can help you
Reply
#5

pawn Code:
E:\GAMEOF~1\RAVEN'~1.3C\GAMEMO~1\larp.pwn(25115) : error 021: symbol already defined: "strtok"
Remove strtok from your script as it seems that it is already in your script TWICE.

Change all the array's to a much larger number.
Reply
#6

Thanks everyone I fixed
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)