mq help
#1

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;
    }
Reply


Messages In This Thread
mq help - by ScripteRNaBEEL - 21.06.2014, 15:30
Re: mq help - by BroZeus - 21.06.2014, 15:45
Re: mq help - by ScripteRNaBEEL - 21.06.2014, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)