my strtok is broken (Im lost)
#1

Errors
Quote:

C:\Users\Administrator\Desktop\B3RPG\gamemodes\b3r pg.pwn(1725) : error 025: function heading differs from prototype
C:\Users\Administrator\Desktop\B3RPG\gamemodes\b3r pg.pwn(1726) : error 021: symbol already defined: "strtok"
C:\Users\Administrator\Desktop\B3RPG\gamemodes\b3r pg.pwn(1741) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\B3RPG\gamemodes\b3r pg.pwn(174 : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\B3RPG\gamemodes\b3r pg.pwn(1752) : error 047: array sizes do not match, or destination array is too small

Problem With
Quote:

stock strtok( const string[], &index, const seperator[] = " ")
{
new
index2,
result[ 30 ];

index2 = strfind(string, seperator, false, index);


if(index2 == -1)
{
if(strlen(string) > index)
{
strmid(result, string, index, strlen(string), 30);
index = strlen(string);
}
return result;
}
if(index2 > (index + 29))
{
index2 = index + 29;
strmid(result, string, index, index2, 30);
index = index2;
return result;
}
strmid(result, string, index, index2, 30);
index = index2 + 1;
return result;
}

I need this stock or all my commands break.
Reply


Messages In This Thread
my strtok is broken (Im lost) - by bubka3 - 28.09.2009, 03:20
Re: my strtok is broken (Im lost) - by XCultz - 28.09.2009, 03:27
Re: my strtok is broken (Im lost) - by bubka3 - 28.09.2009, 03:39
Re: my strtok is broken (Im lost) - by ded - 28.09.2009, 04:05
Re: my strtok is broken (Im lost) - by bubka3 - 28.09.2009, 04:13
Re: my strtok is broken (Im lost) - by Hiitch - 28.09.2009, 10:17
Re: my strtok is broken (Im lost) - by bubka3 - 28.09.2009, 14:51

Forum Jump:


Users browsing this thread: 3 Guest(s)