Commands Error :S
#1

Hi iam using:
http://forum.sa-mp.com/index.php?topic=101996.0

and i have 2 errors:

Код:
(216) : error 047: array sizes do not match, or destination array is too small
(219) : error 047: array sizes do not match, or destination array is too small
The codes:
Код:
	new cmd[128];
	new idx;
	cmd = strtok(cmdtext, idx);
	if (!strcmp(cmd, "/holder", true))
	{
	  cmd = strtok(cmdtext, idx);
	  new model = strval(cmd);
		SetHolderWeapon(playerid, model);
		return 1;
	}
	if (!strcmp(cmd, "/remove", true))
	{
		RemoveHolderWeapon(playerid);
	  return 1;
	}


216: 	cmd = strtok(cmdtext, idx);
219: cmd = strtok(cmdtext, idx);
Please can somebody help me :S

(srry for bad english) iam dutch
Reply
#2

just delete the 219 -.-'
Reply
#3

Quote:
Originally Posted by LasTRace
just delete the 219 -.-'
what 219?

This one
219: cmd = strtok(cmdtext, idx);

This is just to show what line 219 is
Reply
#4

plz help me
Reply
#5

216: cmd = strtok(cmdtext, idx);
219: cmd = strtok(cmdtext, idx);

Those two are exactly same...

Delete one of them.

That's what he meant
Reply
#6

Quote:
Originally Posted by IntrozeN
216: cmd = strtok(cmdtext, idx);
219: cmd = strtok(cmdtext, idx);

Those two are exactly same...

Delete one of them.

That's what he meant
Still a Error:

Код:
(221) : error 047: array sizes do not match, or destination array is too small

Code:
221: 	cmd = strtok(cmdtext, idx);
Reply
#7

Код:
new cmd[128];
to
Код:
new cmd[256];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)