Need help with random numbers...
#6

add this somewhere in your script past main()
pawn Код:
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;
}
Reply


Messages In This Thread
Need help with random numbers... - by *BueNoOo* - 18.06.2009, 11:43
Re: Need help with random numbers... - by Vince - 18.06.2009, 12:01
Re: Need help with random numbers... - by *BueNoOo* - 18.06.2009, 12:08
Re: Need help with random numbers... - by Grim_ - 18.06.2009, 12:09
Re: Need help with random numbers... - by *BueNoOo* - 18.06.2009, 12:20
Re: Need help with random numbers... - by Grim_ - 18.06.2009, 12:22
Re: Need help with random numbers... - by *BueNoOo* - 18.06.2009, 12:30
Re: Need help with random numbers... - by Grim_ - 18.06.2009, 12:31
Re: Need help with random numbers... - by *BueNoOo* - 18.06.2009, 12:36
Re: Need help with random numbers... - by Vince - 18.06.2009, 13:10

Forum Jump:


Users browsing this thread: 2 Guest(s)