undefined symbol "strtok" - 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: undefined symbol "strtok" (
/showthread.php?tid=345137)
undefined symbol "strtok" -
thefatshizms - 23.05.2012
hi i got a error making a admin system through a tut what do i have to define?
Re: undefined symbol "strtok" -
spedico - 23.05.2012
Add this to your script:
pawn Code:
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: undefined symbol "strtok" -
thefatshizms - 23.05.2012
Quote:
Originally Posted by spedico
Add this to your script:
pawn Code:
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; }
|
thanks for de help +rep
Re: undefined symbol "strtok" -
AsulKapa - 03.09.2013
thanks you
Re: undefined symbol "strtok" -
DanishHaq - 03.09.2013
Quote:
Originally Posted by AsulKapa
thanks you
|
Why bump a year old topic? If you was not the creator and the topic wasn't created recently, you have no reason to post here.
Respuesta: undefined symbol "strtok" -
Elcheto1999 - 25.01.2017
gracias por la ayuda