Payday problem
#6

Quote:
Originally Posted by Reklez
Посмотреть сообщение
change playerid to i, it will give you many errors.

and here is about the random cash you talking about

pawn Код:
new RandomPay = random(50000); //change the value to your cash value you want
GivePlayerMoney(playerid, random); //this will give random money 0 to 50000
change this line

pawn Код:
SendClientMessage(playerid, COLOR_WHITE,"You have recived a check of 1,000$!");
with this

pawn Код:
new string[128];
format(string, sizeof(string), "You have recieve a check of $%i", RandomPay);
SendClientMessage(i, COLOR_WHITE, string);
That's not very 'clever', maybe use Min, Max ?
Because at Pay Day the player can get 1$, so what the **** ?

pawn Код:
new RandomPay = random( 50000 - 10000 ) + 10000; //change the value to your cash value you want [ ( Max - Min ) + Min ]
GivePlayerMoney( playerid, RandomPay ); //this will give random money 10000 to 50000
PS: You're wrong at the line:
pawn Код:
GivePlayerMoney(playerid, random); //this will give random money 0 to 50000
You have screwed the second parameter:
pawn Код:
GivePlayerMoney(playerid, RandomPay); //this will give random money 0 to 50000
Reply


Messages In This Thread
Payday problem - by DannySnoopy - 04.04.2012, 09:19
Re: Payday problem - by RenSoprano - 04.04.2012, 09:56
Re: Payday problem - by DannySnoopy - 04.04.2012, 10:13
Re: Payday problem - by aRoach - 04.04.2012, 10:16
Re: Payday problem - by Reklez - 04.04.2012, 10:20
Re: Payday problem - by aRoach - 04.04.2012, 10:23
Re: Payday problem - by DannySnoopy - 04.04.2012, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)