23.07.2013, 04:38
Hello,
i have a question about reseting an enum with the best an shortest method.
At the moment I reset my enum so:
etc...
But this is a waste of code, so is there any better way to do this?
greets Zunno
(Sorry for my bad english :/)
i have a question about reseting an enum with the best an shortest method.
At the moment I reset my enum so:
pawn Код:
PlayerInfo[playerid][pDatabaseID] = 0;
PlayerInfo[playerid][pName] = "\0";
PlayerInfo[playerid][pPosX] = 0.0;
PlayerInfo[playerid][pPosX] = 0.0;
But this is a waste of code, so is there any better way to do this?
greets Zunno
(Sorry for my bad english :/)