Mordaunt 
Super Moderator
   
Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35

|
Unidentified Symbol:
I have been trouble shooting this for a couple of hours and it won't go away,
I get the error Undefined symbol ''
Based on this section of my script:
Code:
[FUNCTION acc_is_owner]
for <src.account.chars>
if (<account.char.<eval <local._for>-1>.is_owner>)
return 1
endif
endfor
return 0
specifically the if (<account.char.<eval <local._for>-1>.is_owner>) line.
There is nothing wrong with this function it runs perfectly everywhere else in the script when it is called where the player is src ( and it is called a lot!)
It is causing the error ONLY WHEN CALLED BY THIS EVENT where the player is default rather than src
Code:
ON=@ItemDClick
if !(strcmpi(*<strarg <act.name>>*, *Recovery*)) || (<act.defname>==<def.vendor_deed_id>)
if <QVAL (<def.account_ownership>)? (<I.is_owner>) || (<I.acc_is_owner>):(<I.is_owner>)> || (<I.is_coowner>) || (<I.is_friend>)
obj=<region.tag0.sign>
if (<obj.dtag0.vendors> < <obj.dtag0.max_vendors>)
obj.tag0.vendors += 1
return 0
else
sysmessage @,,1 You have no available vendor slots
sysmessage @,,1 You must remove an existing vendor before you can place a new one.
return 1
endif
else
sysmessage @,,1 Only people on the house list may place vendors here
return 1
endif
endif
Looking for a fresh pair of eyes here to see if anyone can see what I am missing.
(This post was last modified: 10-16-2012 12:56 PM by Mordaunt.)
|
|
| 10-16-2012 12:55 PM |
|
|