23.03.2010, 22:43
Hi, i got some problems with updown keys.
then
Now when i press that button it doesent detect that i press it. But when i put that code with keys in OnPlayerUpdate then detect but why it doesent now?
I need ths for textdraw box updating !
This is realy important to me and pls aneswer soon.Tnxxx (Sorry for bad language!)
Код:
forward keytimer();
Код:
if(strcmp(cmd, "/test", true) == 0) { if(IsPlayerConnected(playerid)) { SetTimer("keytimer",1000,1); } return 1; }
Код:
public keytimer() { new keys, updown, leftright; for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) { if(IsPlayerConnected(playerid)) { GetPlayerKeys(playerid, keys, updown, leftright); if(updown == KEY_UP) { SendClientMessage(playerid, 0xFF0000AA, "UP"); } } } }
I need ths for textdraw box updating !
This is realy important to me and pls aneswer soon.Tnxxx (Sorry for bad language!)