tag mismatch - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: tag mismatch (
/showthread.php?tid=99467)
tag mismatch -
[HKS]dlegend - 27.09.2009
nvm fixed i put a { the by accendent
local variable "string" shadows a variable at a preceding level -
[HKS]dlegend - 27.09.2009
C:\Users\brian d to the j\Desktop\workin on parno\pTc0.1x.pwn(1199) : warning 219: local variable "string" shadows a variable at a preceding level on this not sure wat is causing it
Код:
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;
}