Food Dialog
#9

Quote:
Originally Posted by PotH3Ad
SA-MP Wiki: Floatround - Round a floating point number to an integer value.
It didn't work, this is weird because I've done this before

pawn Код:
if(dialogid == 3)
    {
        if(response)
        {
            if(listitem == 0)
            {
      if(PlayerInfo[playerid][pCash] > 9999)
      {
      new Float:Armour;
            GetPlayerArmour(playerid,Armour);
      if(Armour > 0) return SendClientMessage(playerid, COLOR_GREY, " You can't buy more then 100 Armor!");
        SetPlayerArmour(playerid,Armour+100);
            PlayerInfo[playerid][pCash] -= 10000;
            GivePlayerCash(playerid, -10000);
                }
                else
              {
                SendClientMessage(playerid, COLOR_GREY, " Not enough cash for that !");
              }
Reply


Messages In This Thread
Food Dialog - by Anthony_Brassi - 04.06.2010, 01:50
Re: Food Dialog - by ViruZZzZ_ChiLLL - 04.06.2010, 01:55
Re: Food Dialog - by Anthony_Brassi - 04.06.2010, 01:57
Re: Food Dialog - by ViruZZzZ_ChiLLL - 04.06.2010, 01:59
Re: Food Dialog - by Anthony_Brassi - 04.06.2010, 02:04
Re: Food Dialog - by PotH3Ad - 04.06.2010, 02:16
Re: Food Dialog - by Anthony_Brassi - 04.06.2010, 02:18
Re: Food Dialog - by PotH3Ad - 04.06.2010, 02:20
Re: Food Dialog - by Anthony_Brassi - 04.06.2010, 02:22
Re: Food Dialog - by PotH3Ad - 04.06.2010, 02:43

Forum Jump:


Users browsing this thread: 1 Guest(s)