NPC Crash server?
#1

When 1 player connect his NPC on server, server crash.
Log:
Код:
[23:36:07] [connection] 127.0.0.1:15808 requests connection cookie.
[23:36:08] [connection] incoming connection: 127.0.0.1:15808 id: 2
[23:36:08] [npc:join] NPC0_Husejin_Muharemovic has joined the server (2:127.0.0.1)
[23:36:08] NPC: Connection from 127.0.0.1 is allowed.
I think problem is in characters... Player's name 19 characters + NPC0_(5), and thats 24, could that crash the server?

EDIT: Crash detect says that this line makes problem:
Код:
format(strg,sizeof(strg),"NPC%d_%s",ii,GetName(i));
Reply
#2

Well, the double i in the format would probably cause some problem.

pawn Код:
format(strg,sizeof(strg),"NPC%d_%s",i,GetName(i));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)