[ Enum Loop ]
i have:
g_ePlayerData[id][hats] = "a|b|c|d" How to: loop(g_ePlayerData[id][hats]) // Print a // Print b // Print c ... |
Re: [ Enum Loop ]
This has nothing to do with looping through an enum. You need to parse the string into an array.
|
Re: [ Enum Loop ]
Quote:
|
Re: [ Enum Loop ]
You'll need to loop using strtok(). Use strtok() then check if 'Right' contains the token, if yes, do it again.
I'm quite sure that there exists an explode function somewhere here in the forums. I'd look in the tutorials section first. |
| All times are GMT -4. The time now is 15:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.