Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Опубликовано:

Hey, just wondering, and if this is wrong, please correct me.

But you can use self waittill() to start a thread, but what does self notify() do? Can you use that to stop the thread?

 

- Boots. (:

Featured Replies

Опубликовано:
Hey, just wondering, and if this is wrong, please correct me.

But you can use self waittill() to start a thread, but what does self notify() do? Can you use that to stop the thread?

 

- Boots. (:

I dont think so, I think you need to have a } on a single line to stop a thread...

Опубликовано:
  • Автор
Hey, just wondering, and if this is wrong, please correct me.

But you can use self waittill() to start a thread, but what does self notify() do? Can you use that to stop the thread?

 

- Boots. (:

I dont think so, I think you need to have a } on a single line to stop a thread...

 

I don't quite understand what you mean, and I figured it out. Still don't know what self notify() does though.

Опубликовано:
I don't quite understand what you mean, and I figured it out. Still don't know what self notify() does though.

It sends out a notify event on the current object, which can be waited for using a self waittill in another thread.

 

To elaborate, an example would be;

 

#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

HealthMonitor() {
while(1) {
	if(self.health < 100) {
		self.health = 100;
		self notify("player_healed");
	}
}
}

PlayerHealed() {
self waittill("player_healed");

self iPrintlnBold("Full Health!");
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.