![]() |
A Few Functions For Checking
PHP Code:
I often get confused when doing a crapload of checks and I've always found it easier to do: PHP Code:
PHP Code:
|
The function checking one...maybe... but definitely not one for checking an object for variables. Seems like an unnecessary process for a simple operation.
|
I have just one comment.
Instead of all the return true/return false, you can do something like (for example): PHP Code:
|
Quote:
PHP Code:
I just had to edit it :o (<3) |
Quote:
Quote:
|
Quote:
But... Quote:
This should do the trick :). PHP Code:
|
Quote:
Quote:
|
hasfunction() is an existing function of TGraalVar. And returns if an object has the function name you input.
These kinds of things would be useful as custom global functions. (Adding Control-NPC to function lookup) |
| All times are GMT +2. The time now is 06:45 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.