SA-MP Forums Archive
I've got a issue - 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: I've got a issue (/showthread.php?tid=156293)



I've got a issue - ihatetn931 - 21.06.2010

What does this mean? I can't get my scirpt compiled till i figure out what this error means

Код:
D:\sa-mp server\gamemodes\SLRP.pwn(34402) : fatal error 102: table overflow: "loop table"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
The line it saying it's on

pawn Код:
while ((idx < length) && (cmdtext[idx] <= ' '))
I did some searchin on the forums and never found anything


Re: I've got a issue - mprofitt - 21.06.2010

Maybe try this

Код:
while ((idx < length) && (cmdtext[idx] <= 32))



Re: I've got a issue - ihatetn931 - 21.06.2010

Quote:
Originally Posted by mprofitt
Maybe try this

Код:
while ((idx < length) && (cmdtext[idx] <= 32))
Same error.

The command it's under

pawn Код:
if(strcmp(cmd, "/do", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= 32))
{
idx++;


new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;


result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GREY, "[CMDINFO] - /do [Action]");
return 1;


format(string, sizeof(string), "*%s (%s)",result, sendername);
ProxDetector(20.0, playerid, string,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN);
printf("%s", string);
return 1;


return 1;