Help With Money from 60$ to 800$ how?
#1

The title says everything I want to make giveplayermoney(playerid,MN) where MN should be random from 60 to 800$ How can I make it?
Reply
#2

pawn Код:
stock GiveRandomAmount(playerid)
{
new RandomAMT = random(800);
if(random >= 60 && random <= 800) { GivePlayerMoney(playerid, random); }
return 1;
}
As far as I know, this should work.
Reply
#3

Quote:
Originally Posted by (.Aztec);
Посмотреть сообщение
pawn Код:
stock GiveRandomAmount(playerid)
{
new RandomAMT = random(800);
if(random >= 60 && random <= 800) { GivePlayerMoney(playerid, random); }
return 1;
}
As far as I know, this should work.

Edit: One second. <
Reply
#4

Thanks
Reply
#5

Quote:
Originally Posted by (.Aztec);
Посмотреть сообщение
pawn Код:
stock GiveRandomAmount(playerid)
{
new RandomAMT = random(800);
if(random >= 60 && random <= 800) { GivePlayerMoney(playerid, random); }
return 1;
}
As far as I know, this should work.
Ha. ha. ha. (!). And what do you do when RandomAMT is < 60?

pawn Код:
stock RandomMoney()
{
     return (60+random(741));
}

GivePlayerMoney(playerid, RandomMoney() );
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)