13.02.2014, 12:30
Hi alll..
I need somehelp with OnPlayerKeyStateChange public, when i use if(newkeys & KEY_FIRE), lets take example and i'll explain:
if(newkeys & KEY_FIRE) // /tow command
then the code under it, then after new one using if(newkeys & KEY_FIRE):
if(newkeys & KEY_FIRE) // /untow command
under it code bla bla bla
On game - first press ctrl/fire button the towtruck tows the vehicle but on second time to untow the vehicle doesn't respond
means /untow command key doesn't work, can someone explain me why and tell me what's wrong with that?
I need somehelp with OnPlayerKeyStateChange public, when i use if(newkeys & KEY_FIRE), lets take example and i'll explain:
if(newkeys & KEY_FIRE) // /tow command
then the code under it, then after new one using if(newkeys & KEY_FIRE):
if(newkeys & KEY_FIRE) // /untow command
under it code bla bla bla
On game - first press ctrl/fire button the towtruck tows the vehicle but on second time to untow the vehicle doesn't respond
means /untow command key doesn't work, can someone explain me why and tell me what's wrong with that?