Score problem
#1

Hi,

When player answers at the question he need to get money and score, I get money but not and score.
What's wrong with this code?

Код:
public OnPlayerText(playerid, text[])
{
        if(strval(text) == answer && endm == 1)
        {
            format(str, sizeof(str), "MATH: %s(%d) won the Math Contest $%d + %i score [ Answer: %d ]", GetName(playerid), playerid, PRIZE, PRIZESCORE, answer);
            SendClientMessageToAll(COLOR_YELLOW, str);
            GivePlayerMoney(playerid, PRIZE);
            SetPlayerScore(playerid, GetPlayerScore(playerid) + PRIZESCORE);
            KillTimer(timermath2);
            endm = 0;
            return 0;
        }
        return 1;
}
Thanks.
Reply


Messages In This Thread
Score problem - by ZaBraNjeNi - 12.12.2014, 15:58
Re: Score problem - by Lordzy - 12.12.2014, 16:01
Re: Score problem - by ZaBraNjeNi - 12.12.2014, 16:05
Re: Score problem - by Lordzy - 12.12.2014, 16:10
Re: Score problem - by ZaBraNjeNi - 12.12.2014, 16:24

Forum Jump:


Users browsing this thread: 1 Guest(s)