Інсталювати Steam
увійти
|
мова
简体中文 (спрощена китайська)
繁體中文 (традиційна китайська)
日本語 (японська)
한국어 (корейська)
ไทย (тайська)
Български (болгарська)
Čeština (чеська)
Dansk (данська)
Deutsch (німецька)
English (англійська)
Español - España (іспанська — Іспанія)
Español - Latinoamérica (іспанська — Латинська Америка)
Ελληνικά (грецька)
Français (французька)
Italiano (італійська)
Bahasa Indonesia (індонезійська)
Magyar (угорська)
Nederlands (нідерландська)
Norsk (норвезька)
Polski (польська)
Português (португальська — Португалія)
Português - Brasil (португальська — Бразилія)
Română (румунська)
Русский (російська)
Suomi (фінська)
Svenska (шведська)
Türkçe (турецька)
Tiếng Việt (в’єтнамська)
Повідомити про проблему з перекладом
/// Sets a comment for the event
That way it'll reset itself each time the alarm fires.
Otherwise, like others have stated, just reset your alarm in the alarm event itself; setting an alarm value anywhere else totally resets the countdown (which in the event your if statement is working, might be resetting the alarm value before the actual alarm event is ever fired, thus preventing GM's internal checks from ever determining the alarm to be set off.)
As such, adjusting an alarm during the wrong phase won't work at all.
As an aside: You can always draw_text(x,y-8,string(alarm[0]) or something... to moniter your alarm status
{
alarm[1] = 30
}
This code is saying that as soon as the alarm goes off, set it back to 30. This will work, but you will have to put it AFTER all the other events in the alarm code. what you want to do is reset it after it is done. when the alarm finishes all the code in the event, the alarm is then set to -1. So to reset the alarm, you write;
i alarm[1] = -1
{
alarm[1] = 30;
}
or
if alarm[1] <= 0
{
alarm[1] = 30;
}
Thank you everyone
The alarm moniter works, it stays on -1 all the time
-1 means the alarm is completely off.