[pawn]#pragma unused strtok[/pawn]
Próbáld meg úgy hogy ezt beilleszted a a mod egy részébe.Ajánlott a rendszerezhetõség érdekében a mod elejére rakni.
ha segítettem adhatsz +1-et :D
Istenem...
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]#pragma unused strtok[/pawn]
Próbáld meg úgy hogy ezt beilleszted a a mod egy részébe.Ajánlott a rendszerezhetõség érdekében a mod elejére rakni.
ha segítettem adhatsz +1-et :D
Istenem...
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;
}
[/quote]
Ez a helyes válasz !
[pawn]#pragma unused strtok[/pawn]
Próbáld meg úgy hogy ezt beilleszted a a mod egy részébe.Ajánlott a rendszerezhetõség érdekében a mod elejére rakni.
ha segítettem adhatsz +1-et :D
Istenem...
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;
}
[/quote]
Jót írt,mivel az a baj hogy nincs használva a strtok,csak értelmezni kéne a mondatot...
ha azt lett volna hogy:
undefined symbol \"strtok
\"
akkor kellett volna a megoldásod