SA-MP Forums Archive
Less than or equal to - 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: Less than or equal to (/showthread.php?tid=365498)



Less than or equal to - SnG.Scot_MisCuDI - 03.08.2012

For some reason the bank is not letting me deposit any cash. Its saying the client message when i do /deposit 100 and not /deposit -100

pawn Код:
if(amount <= 0) return SendClientMessage(playerid,COLOR_RED,"You have to add atleast $1 into the bank!");



Re: Less than or equal to - [MM]RoXoR[FS] - 03.08.2012

Above code is perfect.

Show us the full code.


Re: Less than or equal to - Cjgogo - 03.08.2012

I guess ammount equals GetPlayerMoney(playerid),right?If no,thewn try this:
pawn Код:
if(GetPlayerMoney(playerid)<=0)



Re: Less than or equal to - SEnergy - 03.08.2012

Quote:
Originally Posted by Cjgogo
Посмотреть сообщение
I guess ammount equals GetPlayerMoney(playerid),right?If no,thewn try this:
pawn Код:
if(GetPlayerMoney(playerid)<=0)
O_o no, amount equals to the amount he wants to deposit


Re: Less than or equal to - [MM]RoXoR[FS] - 03.08.2012

Quote:
Originally Posted by Cjgogo
Посмотреть сообщение
I guess ammount equals GetPlayerMoney(playerid),right?If no,thewn try this:
pawn Код:
if(GetPlayerMoney(playerid)<=0)
Probably not

he said he is using /deposit 100

Amount must be 100.

We need /deposit CMD to fix it.


Re: Less than or equal to - SnG.Scot_MisCuDI - 03.08.2012

I fixed it. It was placed in the wrong spot lol +rep anyway :P