Code: Select all
if char(1).alive = 1 and keypress(-18) then
if val(Counter) = 5 then
val(Counter) = 4
end if
end if
Im making an script that makes a variable change value when a key is pressed, but when i press it, nothing happens. I already activated the script via events and still nothing.
Code: Select all if char(1).alive = 1 and keypress(-18) then
Last edited by 1gnacio25 on 23 Jul 2021, 6:35, edited 1 time in total.
| ||
The Right would be this: Code: Select all if char(1).alive = 1 and keypress(-18) = -1 Only when the keypress is alone : Code: Select all if keypress(-18) then Or Code: Select all if keypress(-18) = -1 then | ||
Who is online (over the past 5 minutes)Users browsing this forum: 1 guest | ||