Reset structured array with integer/float/string fields
#7

Quote:
Originally Posted by Jefff
Посмотреть сообщение
myArray[playerID][myVar5][0] = '\0';
The resetting to zero works as I want it.

What I also want is a way to check if the variable has been set or unset (i.e. a difference between 0 and some other state of "zero"). But that's only a nice-to-have feature. I just have to set the value which contains a positive number starting with 0 to -1 and can use that as "unset state".

Thanks for the helpful replies.
Reply


Messages In This Thread
Reset structured array with integer/float/string fields - by Programie - 04.03.2012, 15:21
Re: Reset structured array with integer/float/string fields - by T0pAz - 04.03.2012, 15:33
Re: Reset structured array with integer/float/string fields - by Zeex_ - 04.03.2012, 15:48
Re: Reset structured array with integer/float/string fields - by T0pAz - 04.03.2012, 15:52
Re: Reset structured array with integer/float/string fields - by Programie - 04.03.2012, 16:01
Re: Reset structured array with integer/float/string fields - by Jefff - 04.03.2012, 22:50
Re: Reset structured array with integer/float/string fields - by Programie - 05.03.2012, 00:02

Forum Jump:


Users browsing this thread: 1 Guest(s)