Big Problem - 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: Big Problem (
/showthread.php?tid=163009)
Big Problem -
Tekto - 25.07.2010
Код:
C:\----------(317) : error 001: expected token: ";", but found "stock"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Line 317:
Код:
stock strtok(const string[], &index,seperator=' ')
Allcode:
Код:
stock strtok(const string[], &index,seperator=' ')
{
new length = strlen(string);
new offset = index;
new result[128];
while ((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
if ((index < length) && (string[index] == seperator))
{
index++;
}
return result;
}
Re: Big Problem -
Vince - 25.07.2010
You forgot a ";" on the previous, not-empty, line above line 317.
Re: Big Problem -
Tekto - 25.07.2010
Uups , yea , fixed it . thanks .