26 Errors, Help please ( + Rep ) - 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)
+--- Thread: 26 Errors, Help please ( + Rep ) (
/showthread.php?tid=494679)
26 Errors, Help please ( + Rep ) -
Clad - 14.02.2014
Код:
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(3962) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4148) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4277) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4336) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4380) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4383) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4386) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4557) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4560) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4613) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4627) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4641) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4655) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4669) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4683) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4697) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4708) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4745) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4839) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(4884) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(5061) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(5065) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(5070) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(5074) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(5090) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\boss\Bureau\TPG Roleplay\gamemodes\TPGSERVER.pwn(5095) : 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.
Re: 26 Errors, Help please ( + Rep ) -
CuervO - 14.02.2014
Show any (or all) of the lines. This most likely happens when trying to put more than what an array can hold.
Text[6];
Text = "0123456"; would exceed it's size. (7 Characters on a 6 characters array)
Re: 26 Errors, Help please ( + Rep ) -
Clad - 14.02.2014
Код:
cmd = strtok(cmdtext, idx);
Line 3962
Re: 26 Errors, Help please ( + Rep ) -
CuervO - 14.02.2014
I really lost the touch with strtok a long time ago, is cmd an array style variable? If so increase it's size.
To ultimately get rid of such errors I recommend upgrading the whole script to sscanf, which is incredibly easy to use and makes such codes trivial.
(Not to mention it's efficency and speed)