Jump to content
  • 0

why is player not attached OnPCLoginEvent?


drifterxxxx2

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  83
  • Reputation:   3
  • Joined:  10/22/17
  • Last Seen:  

hi

 

I want a welcome message to new players

console shows: Fatal error! player not attached!

and I have 2 questions

prontera,3,3,3	script	Welcome	111,{
	end;
OnPCLoginEvent:
if (!#newbie) {
	sleep 3000;
	message strcharinfo(0),"welcome to the server, let me point this place to you";
	sleep 3000;
	viewpoint 0,167,167,1,0xFF0000;
	set #newbie,1;
	}
	else
	end;
}
	

1.- how can I solve this

2.- will the permanent variable add too much load to my server?

 

thank you! /thx 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

sleep detaches the player. use sleep2 instead

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  83
  • Reputation:   3
  • Joined:  10/22/17
  • Last Seen:  

55 minutes ago, Secrets said:

sleep detaches the player. use sleep2 instead

totally missed that thank you!

what about the #variable? I read it store the value in a table

does it consume too much of server resources? long term speaking i.e. 1000+ accounts

or how does that work?

 

thank you again :D 

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...