28.09.2009, 03:20
Errors
Problem With
I need this stock or all my commands break.
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 |
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; } |