Please help me on this
#6

Quote:
Originally Posted by akib
Посмотреть сообщение
These numbers are random, manually added by admins or owner, just suppose like this
PHP код:
format(msg,sizeof(msg),"1000\n5000\n600\n788\n96666"); 
and i have to show it like this
PHP код:
GivePlayerMoney(line); 
Line will be selected one by one,

1st time it should be GivePlayerMoney(playerid,1000);
2nd time it should be GivePlayerMoney(playerid,5000);
PHP код:
new array[10]; // 10 = max numbers that will be randomeed can be any thing
array[0] = 1000;
array[
1] = 5000;
array[
2] = 600;
array[
3] = 788;
array[
4] = 96666;
new 
ran;
do
{
    
ran random(sizeof(array));
}while(array[
ran] != 0);
array[
ran] >> your random number 
Reply


Messages In This Thread
Please help me on this - by akib - 14.11.2018, 04:26
Re: Please help me on this - by YourWhalecum - 14.11.2018, 04:30
Re: Please help me on this - by akib - 14.11.2018, 04:40
Re: Please help me on this - by aristoffky - 14.11.2018, 05:29
Re: Please help me on this - by aristoffky - 14.11.2018, 05:32
Re: Please help me on this - by khRamin78 - 14.11.2018, 05:32
Re: Please help me on this - by aristoffky - 14.11.2018, 05:34
Re: Please help me on this - by khRamin78 - 14.11.2018, 05:46
Re: Please help me on this - by akib - 14.11.2018, 09:43
Re: Please help me on this - by khRamin78 - 14.11.2018, 14:56

Forum Jump:


Users browsing this thread: 1 Guest(s)