How do I reset an enum at best?
#2

I use this:

pawn Код:
for(new i = 0; enumPlayerInfo:i < enumPlayerInfo; i++) pStats[playerid][enumPlayerInfo:i] = 0;
Obviously "enumPlayerInfo" represents the name of the enum and "pStats" would be "PlayerInfo" for you. The best part is that all strings are reset and bools are set to false.
Reply


Messages In This Thread
How do I reset an enum at best? - by Zunno - 23.07.2013, 04:38
Re: How do I reset an enum at best? - by Scenario - 23.07.2013, 04:51
AW: How do I reset an enum at best? - by Zunno - 23.07.2013, 05:06
Re: How do I reset an enum at best? - by Pottus - 23.07.2013, 05:12
AW: How do I reset an enum at best? - by Zunno - 23.07.2013, 05:15

Forum Jump:


Users browsing this thread: 1 Guest(s)