SA-MP Forums Archive
Plz help me! 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: Plz help me! Compile error! (/showthread.php?tid=145237)



Plz help me! Compile error! - zalyy - 01.05.2010

Hi im tryed to compile a rp mod but showed this

Код:
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(4182) : error 047: array sizes do not match, or destination array is too small
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(6474) : error 047: array sizes do not match, or destination array is too small
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(6575) : error 047: array sizes do not match, or destination array is too small
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(6764) : error 047: array sizes do not match, or destination array is too small
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(6997) : error 047: array sizes do not match, or destination array is too small
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(7154) : error 047: array sizes do not match, or destination array is too small
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(7299) : error 047: array sizes do not match, or destination array is too small
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(7591) : error 047: array sizes do not match, or destination array is too small
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(7679) : error 047: array sizes do not match, or destination array is too small
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(8139) : error 047: array sizes do not match, or destination array is too small
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(17784) : error 025: function heading differs from prototype
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(17785) : error 021: symbol already defined: "strtok"
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(17795) : error 047: array sizes do not match, or destination array is too small
E:\Program Files\Rockstar Games\GTA San Andreas\My server\gamemodes\SWRP.pwn(22384) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


13 Errors.



Re: Plz help me! Compile error! - Zimon95 - 01.05.2010

Uhm, you probably missed a bracket.


Re: Plz help me! Compile error! - zalyy - 01.05.2010

line 4182: tmp = strtok(text, idx);

line 6474: x_info = strtok(cmdtext, idx);

line 6575: x_info = strtok(cmdtext, idx);

line 6764: x_info = strtok(cmdtext, idx);

line 6997: x_info = strtok(cmdtext, idx);

7154: x_info = strtok(cmdtext, idx);

7299: x_info = strtok(cmdtext, idx);

7591: x_info = strtok(cmdtext, idx);

7679: x_info = strtok(cmdtext, idx);

8139: x_info = strtok(cmdtext, idx);

17784trtok(string[],&idx,seperator = ' ')

17785:{

17795: return ret;

22384:nothing so this is tha end



Re: Plz help me! Compile error! - aircombat - 01.05.2010

a missing bracket


Re: Plz help me! Compile error! - zalyy - 01.05.2010

and how can i fix it?


Re: Plz help me! Compile error! - aircombat - 01.05.2010

Quote:
Originally Posted by zalyy
and how can i fix it?
check ur script from line 1 to line 22384 , no other way


Re: Plz help me! Compile error! - zalyy - 01.05.2010

man but what i need to do...