mSelection include error - 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: mSelection include error (
/showthread.php?tid=545490)
mSelection include error -
D3vin - 08.11.2014
I downloaded mSelection include from ****** and now I putted one on include folder and other on pawno--include folder
and did
#include <mSelection> on the gamemode but I get include error here what i found, I dont know how to fix it plz help !!
....\pawno\include\mSelection.inc(698 ) : warning 219: local variable "string" shadows a variable at a preceding level
pawn Код:
(698)stock mS_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;
}
Re: mSelection include error -
Kwarde - 13.11.2014
The string "string" already exists in your own script, at a higher level. Do you have a global variable named "string" in your own script? If yes, try to change it.