Problem with In Game Money :P
#1

Here's the Code

Код:
			if(strcmp("/buildstructure", cmd, true) == 0) // creates a house type property
	{
	new Money;
	GetPlayerMoney(playerid, Money);
	if(Money >= 9999)
	{
		PropertyCommand( playerid, cmd, cmdtext,idx, TYPE_HOUSE);
		ResetPlayerMoney(playerid);
		}
	else if(Money <= 9999)
 {
	SendClientMessage(playerid, 0xFFFAAA, "You dont have enough Money Buddy!, Structures cost 10,000!");
	}
		return 1;
	}
now Im ingame with enough money but It still gives me, You dont have enough money Buddy!

Any help is Appreciated. thanks
Reply
#2

Try this.

pawn Код:
Money = GetPlayerMoney(playerid);
Reply
#3

Fixed. Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)