Quote:
Originally Posted by Bakr
It's also worth a note that you'll need to get the spaces of the original text anyway.
pawn Code:
public OnPlayerCommandText( playerid, cmdtext[ ] ) { new cmd[ 256 ], tmp[ 256 ], idx;
cmd = strtok( cmdtext, idx ); // Inside command if( !strcmp( cmd, "/whatever", true ) ) tmp = strtok( cmdtext, idx ); new color = strval( tmp ); tmp = strtok( cmdtext, idx ); new color2 = strval( tmp );
|
That half worked... it detects "color" aka the first tmp, but it doesn't detect "color2", the second tmp.