how to make random money amounts?
#1

i am making it so you can rob stores in my server. and i need to know how to make it so you can get random money amounts instead of just 1 amount...
Reply
#2

Код:
new randMoney = random(1000); // Up to $1000
GivePlayerMoney(playerid,randMoney); // Gives the random amount
Reply
#3

my pawno crashes when i compile that
Reply
#4

Код:
public OnPlayerConnect(playerid)
{
   SetPlayerMoney(playerid,10000) //here you add the ammout of money
Reply
#5

that makes no sense....
Reply
#6

Quote:
Originally Posted by Bloodz4Lyfe
my pawno crashes when i compile that
It works for me.


@<.::[Deadly_Evil]::.> - That gives $10,000 when the player connects, how is that going to help him?

Reply
#7

thats exactly what i was saying, rofl
Reply
#8

where exactly does the new randmoney thing go?
Reply
#9

nevermind i got it to work. thanx
Reply
#10

Learn how to use a "Modify" button.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)