How to make %d say the amount of cash earnt
#2

You need to create an array to use as a string, and format it:

pawn Код:
new money = random(10000-5000)+5000;
GivePlayerMoney(playerid, money);

new string[128];
format(string, sizeof(string), "You've Earnt $%d", money);
SendClientMessage(playerid, COLOR_GREEN, string);
Reply


Messages In This Thread
How to make %d say the amount of cash earnt - by Haydz - 05.10.2010, 09:31
Re: How to make %d say the amount of cash earnt - by Zamaroht - 05.10.2010, 09:38
Re: How to make %d say the amount of cash earnt - by samgreen - 05.10.2010, 10:52
Re: How to make %d say the amount of cash earnt - by [MKD]Max - 05.10.2010, 11:46

Forum Jump:


Users browsing this thread: 1 Guest(s)