SA-MP Forums Archive
need help for GivePlayerMoney - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help for GivePlayerMoney (/showthread.php?tid=274763)



need help for GivePlayerMoney - timaoux - 07.08.2011

Код:
new Milk[MAX_PLAYERS];
Код:
Milk[playerid] += 150;
	new string[50];
	format(string, sizeof(string), "+150 L of milk");
	GameTextForPlayer(playerid, string, 3000, 4);
	TogglePlayerControllable(playerid, 1);
Код:
if(pickupid==sprunk)
	{
	    GivePlayerMoney(playerid, Milk];
	}
i want give money to player, exemple if player have 500L of milk it will give 500$ to the player

please help


Re: need help for GivePlayerMoney - Harry_Sandhu - 07.08.2011

try this.

pawn Код:
GivePlayerMoney(playerid, /*Amount of money here*/);



Re : need help for GivePlayerMoney - timaoux - 07.08.2011

no, i want it detect the amount of player milk and give the same amount of money than milk :\


Re: need help for GivePlayerMoney - iiKyle - 07.08.2011

How Much 'MILK' Can They Carry at a Time.

Because you Said in your Last Post 'You Want it to Detect the Amount of Player Milk'

If You Can only Hold 150L.

Then Just Give them the Money via The GivePlayerMoney,


Re: need help for GivePlayerMoney - MadeMan - 07.08.2011

pawn Код:
GivePlayerMoney(playerid, Milk[playerid]);