07.05.2010, 09:00
I wrote a little maths game for my gamemode.. it was on command /a but I decided against that idea and now I'm trying to put it on OnPlayerText.
The above code doesn't work, why not?
pawn Код:
if(text[0] == answer) {
new str[128];
format(str,sizeof(str),"* %s has won Numb3rz with an answer of %d",PlayerName2(playerid), answer);
SendClientMessageToAll(MAD_WHITE,str);
GivePlayerMoney(playerid,20000);
MathOff();
}