Strval(inputtext) -- Need help.
#7

Here

Code:
if(dialogid == DIALOG_DEPOSIT)
    {
        if(!response) return 1;
        if(response)
        {
            if(!strval(inputtext))
            {
                SendClientMessage(playerid, GREY, "You have entered an Invalid amount of money.");
			}
            else
		    {
            	if(PlayerStat[playerid][Money] <= strval(inputtext))
				{
					   new str[128];
					   format(str, sizeof(str), "You have successfully deposit %d in your locker.", strval(inputtext));
                       SendClientMessage(playerid, GREY, str);
                       PlayerStat[playerid][LockerMoney] += strval(inputtext);
                       GiveMoney(playerid, -strval(inputtext));
                       format(str, sizeof(str), "* %s opens their locker and puts %d in it.", GetICName(playerid), strval(inputtext));
                       SendNearByMessage(playerid, ACTION_COLOR, str, 5);
                }
                else
				{
				    SendClientMessage(playerid, GREY, "You don't have that much.");
				}
            }
        }
	}
Reply


Messages In This Thread
Strval(inputtext) -- Need help. - by Bobman - 17.01.2013, 17:04
Re: Strval(inputtext) -- Need help. - by mineralo - 17.01.2013, 17:51
Re: Strval(inputtext) -- Need help. - by Bobman - 17.01.2013, 18:46
Re: Strval(inputtext) -- Need help. - by RedCrossER - 17.01.2013, 18:51
Re: Strval(inputtext) -- Need help. - by Bobman - 17.01.2013, 18:55
Re: Strval(inputtext) -- Need help. - by azzerking - 17.01.2013, 18:58
Re: Strval(inputtext) -- Need help. - by Bobman - 17.01.2013, 19:02
Re: Strval(inputtext) -- Need help. - by Sasino97 - 17.01.2013, 20:15
Re: Strval(inputtext) -- Need help. - by Chenko - 17.01.2013, 22:00
Re: Strval(inputtext) -- Need help. - by Bobman - 18.01.2013, 10:45

Forum Jump:


Users browsing this thread: 4 Guest(s)