Need urgent help (about arrays)
#3

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
you dont need randomEx
just use new rand = random(sizeof(g_Fishes));
and then after it use g_Fishes[rand][1] and g_Fishes[rand][2] in any way you want to like for printing it will be like this
pawn Код:
print("random fist");
new rand= random(sizeof(g_Fishes));
printf("%s || Min Weight: %d || Max Weight: %d", g_Fishes[rand][0], g_Fishes[rand][1], g_Fishes[rand][2]);
Thanks, but that's whats not I'm looking for.
I'm looking for random weights which is a random between MINIMUM WEIGHT of a fish and a MAXIMUM WEIGHT of a fish so that's why I need RandomEx.
Any other answers?
Reply


Messages In This Thread
Need urgent help (about arrays) - by greentarch - 30.06.2014, 14:20
Re: Need urgent help (about arrays) - by BroZeus - 30.06.2014, 14:25
Re: Need urgent help (about arrays) - by greentarch - 30.06.2014, 14:30
Re: Need urgent help (about arrays) - by BroZeus - 30.06.2014, 14:38
Re: Need urgent help (about arrays) - by greentarch - 30.06.2014, 14:42
Re: Need urgent help (about arrays) - by BroZeus - 30.06.2014, 14:50
Re: Need urgent help (about arrays) - by greentarch - 30.06.2014, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)