08.11.2014, 19:54
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
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;
}