Jump to content
  • 0

why is player not attached OnPCLoginEvent?


Question

Posted

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 

2 answers to this question

Recommended Posts

  • 0
Posted
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 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...