Jump to content
  • 0

[Error]: buildin_strcharinfo: fatal error ! player not attached!


DEsMOn

Question


  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.05
  • Content Count:  172
  • Reputation:   1
  • Joined:  11/16/20
  • Last Seen:  

Hello Scripters,

Can any one guide to fix this issue.

[Error]: buildin_strcharinfo: fatal error ! player not attached!
[Debug]: Function: strcharinfo (1 parameter):
[Debug]: Data: number value=0
[Debug]: Source (NPC): Invasion NPC at prontera (170,153)
[Debug]: Source (NPC): Invasion NPC at prontera (170,153)

GoblinInvasion-event.txt

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

add

if(playerattached())

before

announce "It seems that "+strcharinfo(0)+" has ended the Invasion!",bc_all;

like this

if(playerattached()) announce "It seems that "+strcharinfo(0)+" has ended the Invasion!",bc_all;

 

or just remove

announce "It seems that "+strcharinfo(0)+" has ended the Invasion!",bc_all;

because as I see there is no place calling the OnStop event while a character is attached.

Edited by sader1992
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...