![]() |
Callstack Problem
I'm trying to restrict functions in a player class using callstack, but when I try to do so, it returns
PHP Code:
EG: PHP Code:
PHP Code:
|
I don't understand (as usual).
Are you trying to find what called addItem? If addItem is in the player class, and you want the players nick, something like ... PHP Code:
|
Maybe try findweapon(temp.stack[0].scriptcallobject).name
|
PHP Code:
|
Not sure where the problem is, when its displaying the players name then its of course the player object which is calling the function. You can e.g. display the scriptcallobject.objecttype() to be sure it's the player, or the name of the function to know which function has called your function.
If it would be a weapon or npc then the name and objecttype() of the scriptcallobject wouldn't match the player. |
| All times are GMT +2. The time now is 08:06 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.