/try command help
#4

pawn Код:
strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= &#39; '))
    {
        index++;
    }
 
    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > &#39; ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Put it at the bottom of your script.

More Info on it at:
https://sampwiki.blast.hk/wiki/Strtok
Reply


Messages In This Thread
/try command help - by pablodc - 26.08.2009, 12:05
Re: /try command help - by Paladin - 26.08.2009, 12:44
Re: /try command help - by pablodc - 26.08.2009, 13:12
Re: /try command help - by Paladin - 26.08.2009, 13:17
Re: /try command help - by MenaceX^ - 26.08.2009, 13:20
Re: /try command help - by pablodc - 26.08.2009, 13:29
Re: /try command help - by MenaceX^ - 26.08.2009, 13:29
Re: /try command help - by pablodc - 26.08.2009, 13:30
Re: /try command help - by MenaceX^ - 26.08.2009, 13:35
Re: /try command help - by pablodc - 26.08.2009, 13:43

Forum Jump:


Users browsing this thread: 1 Guest(s)