12.12.2014, 15:58
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?
Thanks.
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;
}

