26 Error With Raven-RP Script
#6

Replace the stock srtok
pawn Код:
stock strtok(const string[], &index,seperator=' ')
{
    new length = strlen(string);
    new offset = index;
    new result[MAX_STRING];
    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;
}
Reply


Messages In This Thread
26 Error With Raven-RP Script - by -CaRRoT - 27.11.2011, 14:54
Re: 26 Error With Raven-RP Script - by Kakioshe22 - 27.11.2011, 14:56
Re: 26 Error With Raven-RP Script - by -CaRRoT - 27.11.2011, 14:58
Re: 26 Error With Raven-RP Script - by Kostas' - 27.11.2011, 14:59
Re: 26 Error With Raven-RP Script - by -CaRRoT - 27.11.2011, 15:02
Re: 26 Error With Raven-RP Script - by Kostas' - 27.11.2011, 15:04
Re: 26 Error With Raven-RP Script - by -CaRRoT - 27.11.2011, 15:06

Forum Jump:


Users browsing this thread: 2 Guest(s)