SA-MP Forums Archive
Lots of errors - 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: Lots of errors (/showthread.php?tid=70813)



Lots of errors - Klutty - 27.03.2009

Me and my friends RP server, Sweet Life RP uses an edited Carlito's Roleplay script.

I edited 2 lines, and get 9 errors from other lines, IDK how to fix them..

here are the errors

Code:
C:\Program\SAMP Server\gamemodes\crp.pwn(7233) : error 047: array sizes do not match, or destination array is too small
C:\Program\SAMP Server\gamemodes\crp.pwn(7292) : error 047: array sizes do not match, or destination array is too small
C:\Program\SAMP Server\gamemodes\crp.pwn(9940) : error 047: array sizes do not match, or destination array is too small
C:\Program\SAMP Server\gamemodes\crp.pwn(10068) : error 047: array sizes do not match, or destination array is too small
C:\Program\SAMP Server\gamemodes\crp.pwn(10381) : error 047: array sizes do not match, or destination array is too small
C:\Program\SAMP Server\gamemodes\crp.pwn(14106) : error 025: function heading differs from prototype
C:\Program\SAMP Server\gamemodes\crp.pwn(14107) : error 021: symbol already defined: "strtok"
C:\Program\SAMP Server\gamemodes\crp.pwn(14117) : error 047: array sizes do not match, or destination array is too small
C:\Program\SAMP Server\gamemodes\crp.pwn(16164) : error 021: symbol already defined: "HexToInt"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
This is what i added:

pawn Code:
GivePlayerWeapon(playerid, 41, 700);
    GivePlayerWeapon(playerid, 31, 800);

// On lines 5172 and 5173
Help..?



Re: Lots of errors - Jefff - 27.03.2009

Give the lines with errors not this ;x

Code:
symbol already defined: "strtok"
symbol already defined: "HexToInt"
Delete function strtok and HexToInt


Re: Lots of errors - Klutty - 27.03.2009

When I delete strtok my Compiler crashes? What the fuck?


Re: Lots of errors - ICECOLDKILLAK8 - 27.03.2009

After you have deleted strtok make sure you have no unmatched opening/closing braces


Re: Lots of errors - Klutty - 27.03.2009

Quote:
Originally Posted by JeNkStAX
After you have deleted strtok make sure you have no unmatched opening/closing braces
Isnt working, only gives me more errors...


Re: Lots of errors - vermillioN25 - 31.05.2009

I'm Having problems with this too...


Re: Lots of errors - Luka P. - 31.05.2009

change array sizes on error lines ,it must be something like this
pawn Code:
new Something[1] = { 1,2, }; // you have 2,but you can have 1



Re: Lots of errors - vermillioN25 - 31.05.2009

Code:
C:\Program\SAMP Server\gamemodes\crp.pwn(7230) : error 047: array sizes do not match, or destination array is too small
Line 7230:
Code:
x_info = strtok(cmdtext, idx);
Maybe u are wrong... ?