25.08.2011, 06:13
Quote:
No offense, but that's just idiotic. Why would you WANT to use an outdated and inefficient method when you have faster options available, that are twice as easy to learn?
Anyway, it helps if you actually understood what the strtok function did. It simply removes white spaces found in a string, based on an index to start searching at. pawn Code:
|
I got 2 errors with that.
Code:
H:\Real RP - V2 Project\gamemodes\rlrp.pwn(28606) : error 006: must be assigned to an array H:\Real RP - V2 Project\gamemodes\rlrp.pwn(28607) : error 006: must be assigned to an array
pawn Code:
new
color[22],
color2[22],
idx;
color = strtok( cmdtext, idx ); // Finds the first parameter
color2 = strtok( cmdtext, idx ); // Finds the second parameter