Loop an enum
#9

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Alright. So I don't understand what he meant.

It's not for the string but it's for the enum.

I already did that before posting there.
Actually I'm looping from fType (3) to fState(8 ). It works perfectly. The "k" is incrementing my enum!
If I'm starting from fName(1), "k" will increment the string and not the enum.
So I'm looking for a solution because I want "k" incrementing the enum. E_FACTION_INFOS tag on "k" change nothing.
I hope this more clear. Apologize if is it not. My english is pretty bad.
you are assigning k to a string value that will create corrupted memory as you incrementing it. What you now doing is looping through that string's memory location. The solution above posted is the correct way to do it.
Reply


Messages In This Thread
Loop an enum - by Dayrion - 02.06.2017, 20:45
Re: Loop an enum - by CheezIt - 03.06.2017, 03:34
Re: Loop an enum - by Dayrion - 03.06.2017, 12:00
Re: Loop an enum - by SyS - 03.06.2017, 12:35
Re: Loop an enum - by Dayrion - 03.06.2017, 14:07
Re: Loop an enum - by GhostHacker9 - 03.06.2017, 14:27
Re: Loop an enum - by Dayrion - 04.06.2017, 00:55
Re: Loop an enum - by CheezIt - 04.06.2017, 01:21
Re: Loop an enum - by SyS - 04.06.2017, 01:45
Re: Loop an enum - by SyS - 04.06.2017, 02:37

Forum Jump:


Users browsing this thread: 1 Guest(s)