How? - 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: How? (
/showthread.php?tid=570392)
How? -
Alpay0098 - 09.04.2015
How can I delete string in code below? :
PHP код:
stock mS_strtok(const string[], &index) // Line 698
{
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 also , It's mSelection Include. and string is a problem.
Error code :
PHP код:
pawno\include\mSelection.inc(698) : warning 219: local variable "string" shadows a variable at a preceding level
What should I do?
Re: How? -
CalvinC - 09.04.2015
You can just name it something else, so it doesn't intefere with other "string"-arrays.