25.08.2011, 06:45
It's because you check if the tmp has a value before assigning the information to it. Move the check after you use the first strtok function.
pawn Code:
tmp = strtok( cmdtext, idx );
if( !strlen( tmp ) )
{
// yadada
}
tmp = strtok( cmdtext, idx );
if( !strlen( tmp ) )
{
// yadada
}