need help for GivePlayerMoney
#1

Код:
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
Reply
#2

try this.

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

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

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,
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)