Problem wtf?
#2

You need strtok

Код:
stock strtok(const string[], &index,seperator=' ')
{
new length = strlen(string);
new offset = index;
new result[128];
while ((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}

result[index - offset] = EOS;
if ((index < length) && (string[index] == seperator))
{
index++;
}
return result;
}
stock IsNumeric(const string[])
{
for (new i = 0, j = strlen(string); i < j; i++)
if (string[i] > '9' || string[i] < '0')
return 0;
return 1;
}
Reply


Messages In This Thread
Problem wtf? - by TouR - 11.11.2009, 13:20
Re: Problem wtf? - by MB@ - 11.11.2009, 13:21
Re: Problem wtf? - by TouR - 11.11.2009, 13:23
Re: Problem wtf? - by MB@ - 11.11.2009, 13:24
Re: Problem wtf? - by TouR - 11.11.2009, 13:26
Re: Problem wtf? - by (.Aztec); - 11.11.2009, 13:39
Re: Problem wtf? - by TouR - 11.11.2009, 13:42
Re: Problem wtf? - by MenaceX^ - 11.11.2009, 13:54
Re: Problem wtf? - by TouR - 11.11.2009, 14:02
Re: Problem wtf? - by akis_tze - 11.01.2010, 13:13

Forum Jump:


Users browsing this thread: 5 Guest(s)