View Single Post
  #1  
Old 02-08-2008, 08:04 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud of
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:
temp.stack[0].scriptcallobject.name 
as the player's nick name when echoing, and not the weapon/class/npc it's being used from.

EG:
PHP Code:
<insert players nickuses the addItem function! 
echo's to NC instead of

PHP Code:
<insert name of weapon/class/npcuses the addItem function! 
The only way I can figure out how to avoid this was to move the function outside of the player class, but I really don't want to do that. Is there a way I can avoid this problem?
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·

Last edited by TSAdmin; 02-08-2008 at 08:22 AM..
Reply With Quote