Need urgent help (about arrays)
#2

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]);
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: 4 Guest(s)