npc disconnects
#1

NPC disconnects 5-20 hours after connect. Any suggestions?
Reply
#2

Is this after a gmx restart or just random?

if its random then im guessing they are being denied access due to inactivity either by the server or your script
Reply
#3

if your connecting NPC fast(example: in a loop) at some time and the server will close the connection to the rest as well as it may take them for bots/attacks etc.
Reply
#4

It disconnects randomly. Is this fast?

OnGameModeInit:

pawn Код:
SetTimer("npcstart",600,false);
Reply
#5

Do you know the basics of the timer ?

It is "1000 miliseconds" = "1 second" . In pawn language the timer is writed in *Miliseconds* . Calculating that you can go on with 60.000 miliseconds that is equal to 60 seconds or 1 minute .

pawn Код:
SetTimer("message", 1000, false); // Set a timer of 1000 miliseconds (1 second)
Код:
funcname[]	Name of the function to call as a string. Needs to be a public!
interval	Interval in milliseconds.
repeating	Boolean if the timer should occur repeatedly or only once
Reply
#6

I know that, but " if your connecting NPC fast " 600ms is that fast?

I don't think that's the problem. Any other suggestions?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)