04.02.2012, 15:32
you created a 2dimensional array, thats not needed for a linear ordered amount of values:
and then, the same as Dwane suggested: (now including the message ^^)
edit: lucky you, i posted between. just delete the double shit hehe
pawn Код:
new RandomMoney[]={
5000,
3900,
8900,
7600,
6758,
4589,
3000
};
pawn Код:
new rnd=random(sizeof(RandomMoney));
GivePlayerMoney(playerid,RandomMoney[rnd]);
new string[128];
format(string,sizeof(string),"You earned $%d",RandomMoney[rnd]);
SendClientMessage(playerid,0x33aa33ff,string);

