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.
while ((idx < length) && (cmdtext[idx] <= ' '))
while ((idx < length) && (cmdtext[idx] <= 32))
Originally Posted by mprofitt
Maybe try this
![]() Код:
while ((idx < length) && (cmdtext[idx] <= 32)) |
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;