26 Errors, Help please ( + Rep )
#1

Код:
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.
Reply
#2

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)
Reply
#3

Код:
	cmd = strtok(cmdtext, idx);
Line 3962
Reply
#4

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)