Commands Error :S - 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: Commands Error :S (
/showthread.php?tid=91676)
Commands Error :S -
GforceNL - 16.08.2009
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
Re: Commands Error :S -
LasTRace - 16.08.2009
just delete the 219 -.-'
Re: Commands Error :S -
GforceNL - 16.08.2009
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
Re: Commands Error :S -
GforceNL - 16.08.2009
plz help me
Re: Commands Error :S -
introzen - 16.08.2009
216: cmd = strtok(cmdtext, idx);
219: cmd = strtok(cmdtext, idx);
Those two are exactly same...
Delete one of them.
That's what he meant
Re: Commands Error :S -
GforceNL - 16.08.2009
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);
Re: Commands Error :S -
Jefff - 16.08.2009
to