SA-MP Forums Archive
compile 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: compile error (/showthread.php?tid=263670)



compile error - Vietnam_Gangstaz - 23.06.2011

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


Re: compile error - Tachibana - 23.06.2011

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.


Re: compile error - Vietnam_Gangstaz - 23.06.2011

It not work but thanks for your help


Re: compile error - =WoR=Varth - 23.06.2011

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


Re: compile error - dr.pepper - 23.06.2011

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.


Re: compile error - Vietnam_Gangstaz - 24.06.2011

Thanks everyone I fixed