30.06.2014, 14:50
try like this
not sure
but this should work
not sure
but this should work
pawn Код:
enum fish
{
FishName[50],
MinWeight,
MaxWeight
};
new g_Fishes[][fish] = {
{"Angelfish", 10, 88}, // {Fish name} {Min. weight [pounds]} {Max. weight [pounds]}
{"Brill", 10, 78},
{"Catfish", 40, 120},
{"Dartfish", 30, 100},
{"Electric Eel", 40, 118},
{"Frogfish", 25, 105},
{"Giant Sea Bass", 125, 302},
{"Horn Shark", 50, 200}, // A shark!
{"Icefish", 10, 40},
{"Jackfish", 30, 80},
{"Koi", 40, 120},
{"Lemon Shark", 95, 255}, // I like lemons, also sharks
{"Mackerel", 20, 75},
{"Northern Pike", 20, 60},
{"Oilfish", 60, 135},
{"Porbeagle Shark", 135, 270}, // Another shark
{"Quillfish", 10, 50},
{"Requiem Shark", 60, 200}, // Another shark
{"Salmon", 30, 120},
{"Trout", 30, 75},
{"Unicorn Fish", 10, 40}, // Search on wikipedia.....
{"Viperfish", 10, 40},
{"Whale Shark", 400, 1000}, // This fish is really rewarding because I love sharks, lol. (can reach 66k lbs but hey...)
{"Yellowfin Tuna", 10, 60},
{"Zebra Bullhead Shark", 50, 120} // Last fish and the last shark.
};
/*==========================================*/
new rand = random(sizeof(g_Fishes));
new var = g_Fishes[rand][MaxWeight]-g_Fishes[rand][MinWeight];
new randweight = random(var) + var;