Help with strtok and tmp etc.
#13

Quote:
Originally Posted by Bakr
View Post
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
}
Wow, finally works perfectly. Thankyou.
Reply


Messages In This Thread
Help with strtok and tmp etc. - by Jack_Leslie - 25.08.2011, 05:43
Re: Help with strtok and tmp etc. - by =WoR=Varth - 25.08.2011, 05:54
Re: Help with strtok and tmp etc. - by Jack_Leslie - 25.08.2011, 06:04
Re: Help with strtok and tmp etc. - by Bakr - 25.08.2011, 06:08
Re: Help with strtok and tmp etc. - by Jack_Leslie - 25.08.2011, 06:13
Re: Help with strtok and tmp etc. - by Bakr - 25.08.2011, 06:19
Re: Help with strtok and tmp etc. - by Jack_Leslie - 25.08.2011, 06:25
Re: Help with strtok and tmp etc. - by Bakr - 25.08.2011, 06:27
Re: Help with strtok and tmp etc. - by Jack_Leslie - 25.08.2011, 06:29
Re: Help with strtok and tmp etc. - by Bakr - 25.08.2011, 06:30
Re: Help with strtok and tmp etc. - by Jack_Leslie - 25.08.2011, 06:36
Re: Help with strtok and tmp etc. - by Bakr - 25.08.2011, 06:45
Re: Help with strtok and tmp etc. - by Jack_Leslie - 25.08.2011, 06:50
Re: Help with strtok and tmp etc. - by Speed - 25.08.2011, 07:17

Forum Jump:


Users browsing this thread: 2 Guest(s)