Key state not working
#1

Hey guys i have encountered a problem and cant get rid of it.
This is my code and The Fire key does not Hide the textdraw
Код:
if(newkeys == KEY_FIRE)
    {
	REFILLBOX[playerid] = 0;
    TextDrawHideForPlayer(playerid, Textdraw0);
    TextDrawHideForPlayer(playerid, Textdraw1);
    TextDrawHideForPlayer(playerid, Textdraw2);
    TextDrawHideForPlayer(playerid, Textdraw3);
    TextDrawHideForPlayer(playerid, Textdraw4);
    TextDrawHideForPlayer(playerid, Textdraw5);
    TextDrawHideForPlayer(playerid, Textdraw6);
    TextDrawHideForPlayer(playerid, Textdraw7);
    TextDrawHideForPlayer(playerid, Textdraw8);
    TextDrawHideForPlayer(playerid, Textdraw7);
	return 1;
	}
Reply
#2

Anyone?
Reply
#3

Come on
Reply
#4

PHP код:
// PRESSED(keys)
#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) 
PHP код:
if(PRESSED(KEY_FIRE))
{
    
REFILLBOX[playerid] = 0;
    
TextDrawHideForPlayer(playeridTextdraw0);
    
TextDrawHideForPlayer(playeridTextdraw1);
    
TextDrawHideForPlayer(playeridTextdraw2);
    
TextDrawHideForPlayer(playeridTextdraw3);
    
TextDrawHideForPlayer(playeridTextdraw4);
    
TextDrawHideForPlayer(playeridTextdraw5);
    
TextDrawHideForPlayer(playeridTextdraw6);
    
TextDrawHideForPlayer(playeridTextdraw7);
    
TextDrawHideForPlayer(playeridTextdraw8);
    
TextDrawHideForPlayer(playeridTextdraw7);
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)