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;
}
error: 021: symbol already defined: "strtok" (Linha acima /\) error: 047: array sizes do not match, or destination array is too small ( return result;) error: 047: array sizes do not match, or destination array is too small ( cmd = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small ( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small ( tmp = strtok(cmdtext, idx); ) array sizes do not match, or destination array is too small ( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small ( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small( tmp = strtok(cmdtext, idx); ) error: 047: array sizes do not match, or destination array is too small
strtok2(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;
}
melhor ainda exclui seu strtok
deixar ele ali й perda de eficassia no script e ganho de bytes |
melhor ainda exclui seu strtok
deixar ele ali й perda de eficassia no script e ganho de bytes |
Kasura,atualmente o compilador desconhece stocks funcao() caso ela nгo forem usadas.
Caso seja funcao() dai ele reconhece,porйm raramente alguйm usa isto. |
Comer(playerid)
stock Comer(playerid)
public Comer(playerid)