SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 23/06/2011, 12:31 AM   #1
Vietnam_Gangstaz
Little Clucker
 
Vietnam_Gangstaz's Avatar
 
Join Date: Jun 2011
Posts: 4
Reputation: 0
Question compile error

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 (c) 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
Vietnam_Gangstaz is offline  
Old 23/06/2011, 12:35 AM   #2
Tachibana
Huge Clucker
 
Tachibana's Avatar
 
Join Date: May 2011
Posts: 423
Reputation: 14
Default Re: compile error

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.
__________________
Tokyo! Because we all love Japan. Coming soon!
Tachibana is offline  
Old 23/06/2011, 01:53 AM   #3
Vietnam_Gangstaz
Little Clucker
 
Vietnam_Gangstaz's Avatar
 
Join Date: Jun 2011
Posts: 4
Reputation: 0
Default Re: compile error

It not work but thanks for your help
Vietnam_Gangstaz is offline  
Old 23/06/2011, 02:03 AM   #4
=WoR=Varth
High-roller
 
=WoR=Varth's Avatar
 
Join Date: Apr 2011
Location: Indonesia
Posts: 1,988
Reputation: 133
Default Re: compile error

http://forum.sa-mp.com/showthread.php?t=134573
perhaps can help you
=WoR=Varth is offline  
Old 23/06/2011, 02:03 AM   #5
dr.pepper
Huge Clucker
 
dr.pepper's Avatar
 
Join Date: Jul 2009
Posts: 309
Reputation: 38
Default Re: compile error

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.
dr.pepper is offline  
Old 24/06/2011, 10:41 AM   #6
Vietnam_Gangstaz
Little Clucker
 
Vietnam_Gangstaz's Avatar
 
Join Date: Jun 2011
Posts: 4
Reputation: 0
Default Re: compile error

Thanks everyone I fixed

Last edited by Vietnam_Gangstaz; 25/06/2011 at 02:09 AM.
Vietnam_Gangstaz is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compile error doo2002 Help Archive 2 13/09/2010 02:37 AM
when compile i get error why? plz help Sfinx_17 Help Archive 3 27/11/2009 09:10 AM
Compile Error. Can Someone Compile For Me Please? RolePlay360 Help Archive 2 11/03/2009 09:56 PM


All times are GMT. The time now is 01:33 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.