[HELP] dialog
#7

ok i tried ( maybe its the wrongest way to try it ever but i tried )

if i have 10000 and try to give 10001 i get the message saying i dont have enought money.
if i have enought money let say i have 10000 and try to send 500 the money doesnt change at all ( no decrease no increase ).
is it because tis too fast or because it really don't work ?
PS im trying this alone on local


Код:
     if(dialogid == 2002)
               {
                 if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "Player OFFLINE!");
                 if(strlen(inputtext) > 0)
                 {
                 new amount;
                 amount = strval(inputtext);
                 if(amount <= 0)
                 {
                 // If amount is 0 or lower
                 }
                 else
                 {
                 // If amount is bigger than 0
                 GivePlayerMoney(myId, amount);
                 if(GetPlayerMoney(playerid) < amount) return SendClientMessage(playerid, RED, "You do not have enough money");
                 GivePlayerMoney(playerid, -amount);
                 myId = -1;
                }
               }
              }
	return 0;
Reply


Messages In This Thread
[HELP] dialog - by NvidiaForTheWin - 18.12.2012, 18:27
Re: [HELP] dialog - by LetsOWN[PL] - 18.12.2012, 18:39
Re : [HELP] dialog - by NvidiaForTheWin - 18.12.2012, 18:50
Re: [HELP] dialog - by LetsOWN[PL] - 18.12.2012, 18:52
Re : [HELP] dialog - by NvidiaForTheWin - 18.12.2012, 19:03
Re: [HELP] dialog - by LetsOWN[PL] - 18.12.2012, 19:04
Re : [HELP] dialog - by NvidiaForTheWin - 18.12.2012, 19:16
Re: [HELP] dialog - by LetsOWN[PL] - 18.12.2012, 19:19
Re : Re: [HELP] dialog - by NvidiaForTheWin - 18.12.2012, 19:24
Re: [HELP] dialog - by LetsOWN[PL] - 18.12.2012, 19:27

Forum Jump:


Users browsing this thread: 2 Guest(s)