How to increase the money given on all PayDay cycles
#1

Hello, I need help, on how to increase the money given in all PayDay cycles, for example, this is the code where the GivePlayerMoney it's placed:

Код:
GivePlayerMoney(i,500)
Usually gives a bond of 10k, but I want that gives 30k.

If the 500 means 10k, and so I need to put 700 for the 30k?

Or what I have to put instead of 500 for by that way give to my players 30k?

P.D. I don't need any code, just I need to know what I have to put instead 500.
Reply
#2

Quote:
Originally Posted by Krauser366
Посмотреть сообщение
P.D. I don't need any code, just I need to know what I have to put instead 500.
This method will work for the immediate future, but it's hardly learning.

Also if it's giving you more than 500, then there's something with it, and it's not just a question of what value to put there.
Reply
#3

if

500:10000

Then

x:30000

So

500:10000=x:30000


x = (30000 x 500) : 10000 = 1500

So, change it to

pawn Код:
GivePlayerMoney(i, 1500);


You could do it fastly by thinking
30k is the triple of 10k, so if you want to give 30k, you need to choose the triple of 500, which is 1500

Math mate
Reply
#4

Quote:
Originally Posted by Lucases
Посмотреть сообщение
if

500:10000

Then

x:30000

So

500:10000=x:30000


x = (30000 x 500) : 10000 = 1500

So, change it to

pawn Код:
GivePlayerMoney(i, 1500);


You could do it fastly by thinking
30k is the triple of 10k, so if you want to give 30k, you need to choose the triple of 500, which is 1500

Math mate
Thanks for your help, it works now.
Reply
#5

This isn't good for when next time you have money/script issues... After all, you're going to end up with values that don't match the outputs.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)