SA-MP Forums Archive
erors - help me fix it - 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)
+--- Thread: erors - help me fix it (/showthread.php?tid=306631)



erors - help me fix it - WarLight - 27.12.2011

the eror:
Код:
error 047: array sizes do not match, or destination array is too small
the text:

Код:
new offset = index;
new result[126];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
  result[index - offset] = string[index];
  index++;
}
result[index - offset] = EOS;
return result;
}
the eror:
Код:
error 021: symbol already defined: "strtok"
the text:
Код:
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{



Re: erors - help me fix it - suhrab_mujeeb - 27.12.2011

Is this from an include or from the script?