Issue with GetPlayerScore
#2

You need to move the if statment inside

pawn Код:
//level system
CMD:buylevel(playerid, params[])
{
    if(GetPlayerMoney(playerid) >= 1000)
    {
        GivePlayerMoney(playerid, -1000);
        SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
    }
    return true;
}

CMD:godon(playerid, params[])
{
    if(GetPlayerScore(playerid) > 50)
    {
        SetPlayerHealth(playerid, 99999.9);
    }
    return true;
}
Reply


Messages In This Thread
Issue with GetPlayerScore - by Steel_ - 14.06.2014, 21:03
AW: Issue with GetPlayerScore - by Nero_3D - 14.06.2014, 21:17
Re: Issue with GetPlayerScore - by Steel_ - 14.06.2014, 21:26
Re: Issue with GetPlayerScore - by iFiras - 14.06.2014, 21:29
AW: Issue with GetPlayerScore - by Nero_3D - 14.06.2014, 21:30
Re: Issue with GetPlayerScore - by Steel_ - 14.06.2014, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)