help with /heal
#4

Maybe because you have an extra bracket?
pawn Код:
if(strcmp(cmd,"/heal",true)==0)
    {
        if(PlayerInfo[playerid][pDonateRank] >= 4)
        {
        if(GetTickCount() - GetPVarInt(playerid, "heal") < 120000) return SendClientMessage(playerid, 0xFF0000FF, "you must wait 2 minutes");
                 SetPlayerHealth(playerid, 100);
                 SetPlayerArmour(playerid, 100);
                SendClientMessage(playerid,COLOR_GREEN,"You've set your health and armour to 100");
                    SetPVarInt(playerid, "heal", GetTickCount());
               
            }  /* <-------------------- */
        }
         return 1;
    }
Reply


Messages In This Thread
help with /heal - by boyan96 - 11.11.2011, 11:48
Re: help with /heal - by Mr_Scripter - 11.11.2011, 11:49
Re: help with /heal - by boyan96 - 11.11.2011, 11:51
Re: help with /heal - by SmiT - 11.11.2011, 11:54
Re: help with /heal - by boyan96 - 11.11.2011, 11:56
Re: help with /heal - by Cypress - 11.11.2011, 12:34

Forum Jump:


Users browsing this thread: 1 Guest(s)