SA-MP Forums Archive
How to increase the money given on all PayDay cycles - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to increase the money given on all PayDay cycles (/showthread.php?tid=646697)



How to increase the money given on all PayDay cycles - Krauser366 - 21.12.2017

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.


Re: How to increase the money given on all PayDay cycles - Sew_Sumi - 21.12.2017

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.


Re: How to increase the money given on all PayDay cycles - Lucases - 21.12.2017

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


Re: How to increase the money given on all PayDay cycles - Krauser366 - 21.12.2017

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.


Re: How to increase the money given on all PayDay cycles - Sew_Sumi - 21.12.2017

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.