25.02.2010, 22:06
Okey i need STRTOK but when i search all i see is put
under your script.. jesus christ! Where is the "Under your Script" at the bottom or what? ... i really need it for /carcolor... and https://sampwiki.blast.hk/wiki/Strtok didnt help me this time D:
Код:
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;
}

