21.06.2014, 15:30
THis is my code and i want to add this msg "%s(%d) won the Math Quiz, He/She won the $%d + %i score Answer: %d Solve In This(0) Secs"
Код:
public OnPlayerText(playerid, text[])
{
if(strval(text) == answer && endm == 1)
{
format(str, sizeof(str), "%s(%d) won the Math Quiz, He/She won the $%d + %i score Answer: %d ", GetName(playerid), playerid, PRIZE, PRIZESCORE, answer);
SendClientMessageToAll(COLOR_YELLOW, str);
GivePlayerMoney(playerid, 3000);
SetPlayerScore(playerid, GetPlayerScore(playerid) + PRIZESCORE);
KillTimer(timermath2);
endm = 0;
return 0;
}
return 1;
}

