28.01.2012, 17:48
Ok, heres my enum.
And here what i want to do. I want to select a random entry in the enum where Type = 2 and if there is none, it will send a client message saying "No entries for that type". I will be doing the same thing for other types as i add them, my only problem, i don't know how.
pawn Код:
enum MI
{
Load[30],
Pay,
Type,
LoadID,
UnloadID
}
new MD[][MI] =
{
{"Holy Water", 100, 1, 0, 1},
{"Car Parts", 100, 1, 0, 2},
{"Car Parts", 100, 2, 0, 2}
};