|
| 25 Aug 2015 01:32 AM |
I'm trying to execute a function once the number 1 above q is pressed, but it doesn't work, no errors, nothing...
function IsKeyDown(key) if key == 49 then Doit() end end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 25 Aug 2015 01:48 AM |
Still doesnt work...
function IsKeyDown(key) if key.byte == "49" then Doit() end end |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 25 Aug 2015 01:49 AM |
function IsKeyDown(key) if key.byte() == "49" then Doit() end end |
|
|
| Report Abuse |
|
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 25 Aug 2015 01:55 AM |
stupid noob
keybyte() == 49 |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
| |
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
| |
|