HU/isBrowserDomainBlocked

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Ez a függvény leellenőrzi, hogy egy adott URL betöltése tiltott-e.

Szintaxis

bool isBrowserDomainBlocked ( string address [, bool isURL = false] )

OOP Syntax Help! I don't understand this!

Note: This is a static function under the Browser class
Method: Browser.isDomainBlocked(...)


Kötelező argumentumok

  • address: Egy weboldal URL

Opcionális argumentumok

  • isURL: true amennyiben az address egy URL, false egyébként.

Visszaadott érték

false ha az URL-t be lehet tölteni, true ha tiltott és nil ha hibás URL/domain lett megadva.

Példa

--Check the state of wiki.mtasa.com
if ( isBrowserDomainBlocked ( "wiki.mtasa.com" ) ) then
	--If it is blocked.
	outputChatBox("wiki.mtasa.com is blocked and can't be loaded right now!")
else
	--If it is not blocked. (Was accepted by the user)
	outputChatBox("wiki.mtasa.com is not blocked and ready to be loaded!")
end

Lásd még

GUI Függvények

Fordította

  • WorthlessCynomys