08.07.2016, 22:33
Alguйm poderia disponibilizar um link??
oq achei no ****** estгo dando crash
2bju na bunda
oq achei no ****** estгo dando crash

2bju na bunda

stock 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;
}
pawn Код:
|
: fatal error 100: cannot read from file: "strtok" |
adicionei ao final da GM o mesmo apresenta este erro :/
estranho --' |
#include <strtok>
Vocк usou dessa forma?
Код:
#include <strtok> Pra mim compilou normalmente ![]() |
#include <strtok>
stock 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; }