simple question
#1

So, I have this

PHP код:
CMD:test(playeridparams[])
{
PlayerInfo[playerid][pCash]++;
return 
1;

This
PHP код:
PlayerInfo[playerid][pCash]++; 
This
PHP код:
PlayerInfo[playerid][pCash] = 50
Sets the cash to 50, if you had 100 cash then it sets to 50.
I want to give 50$, not give 1$ or set the cash, how?

Gives only 1$, how to give more than 1$? Don't ask me to use GivePlayerMoney or SetPlayerMoney because I made a custom system that shows custom money, not the regular gta cash.
Reply
#2

You do it with += amount.
For example:
Код:
PlayerInfo[playerid][pCash] += 50;
Reply
#3

Код:
GiveTobiasJones_Money(playerid,cash)
{
	PlayerInfo[playerid][pCash] += cash;
	GivePlayerMoney(playerid,cash);
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)