Problem with In Game Money :P - 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)
+--- Thread: Problem with In Game Money :P (
/showthread.php?tid=282272)
Problem with In Game Money :P -
Grant Johnston - 10.09.2011
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
Re: Problem with In Game Money :P -
IceCube! - 10.09.2011
Try this.
pawn Код:
Money = GetPlayerMoney(playerid);
Re: Problem with In Game Money :P -
Grant Johnston - 10.09.2011
Fixed. Thanks