Help me please :) - 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: Help me please :) (
/showthread.php?tid=296802)
Help me please :) -
Hoshimura - 13.11.2011
Hello , i got the problem when i combine FS LuxAdmin in My Gamemode .
Here this error
error 017: undefined symbol "reason"
error 021: symbol already defined: "strtok"
error 047: array sizes do not match, or destination array is too small
Please help me

thanks Before .
And Sory my bad english xD
Re: Help me please :) -
Mr_Scripter - 13.11.2011
Show your #include's... which are on top of script..
This forum requires that you wait 120 seconds between posts. Please try again in 48 seconds.
Re: Help me please :) -
Chrillzen - 13.11.2011
Put this at the bottom of your script.
Код:
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
And #define reason at the top of your script.