NPC Doesn't Connect -
Alby Fire - 31.03.2011
Hi, i've got an huge problem with my NPC, i created & tested it on my PC, and it worked/s , it succesfully connects and does everything I want, but if I upload my GameMode on my hosted server (wich runs linux) it doesn't connect, and it doesn't even print a trance on the server.log, nothing!
I'm sure that the code is right since it's not my first npc and it works on my PC, and I'm sure that:
-The NPC ain't banned
-I've set the MAX_NPC value
Thank you so much for your help
Re: NPC Doesn't Connect -
Medal Of Honor team - 31.03.2011
is your server, password protected?
Re: NPC Doesn't Connect -
Alby Fire - 31.03.2011
Quote:
Originally Posted by Medal Of Honor team
is your server, password protected?
|
I tried with and without the password, but it doesn't connect anyway
Re: NPC Doesn't Connect -
Medal Of Honor team - 31.03.2011
show us your sever log
Re: NPC Doesn't Connect -
Alby Fire - 31.03.2011
Код:
SA-MP Dedicated Server
----------------------
v0.3c, ©2005-2010 SA-MP Team
[16:47:21] password = "" (string)
[16:47:21] mapname = "San Andreas" (string)
[16:47:21]
[16:47:21] Server Plugins
[16:47:21] --------------
[16:47:21] Loading plugin: streamer.so
[16:47:21]
*** Streamer Plugin v2.5.2 by Incognito loaded ***
[16:47:21] Loaded.
[16:47:21] Loading plugin: sscanf.so
[16:47:21]
[16:47:21] ===============================
[16:47:21] sscanf plugin loaded.
[16:47:21] © 2009 Alex "******" Cole
[16:47:21] ===============================
[16:47:21] Loaded.
[16:47:21] Loading plugin: irc.so
[16:47:21]
*** IRC Plugin v1.4 by Incognito loaded ***
[16:47:21] Loaded.
[16:47:21] Loading plugin: mysql.so
[16:47:21]
> MySQL plugin R4-2 successfully loaded.
[16:47:21] Loaded.
[16:47:21] Loaded 4 plugins.
[16:47:21]
[16:47:21] Ban list
[16:47:21] --------
[16:47:21] Loaded: samp.ban
[16:47:21]
[16:47:21]
[16:47:21] Filter Scripts
[16:47:21] ---------------
[16:47:21] Loading filter script 'anim.amx'...
[16:47:21] Loaded 1 filter scripts.
[16:47:22] Number of vehicle models: 2
Updated the server.log without the password
Re: NPC Doesn't Connect -
Medal Of Honor team - 31.03.2011
there is not incoming connection. Weired. Can you show me your OnPlayerConnect and OnGameModeInit. The NPC part
Re: NPC Doesn't Connect -
Alby Fire - 31.03.2011
OnGameModeInit
pawn Код:
ConnectNPC("Marco_Triplo","bot");
OnPlayerRequestSpawn
pawn Код:
if(IsPlayerNPC(playerid))
{
new playername[24];
GetPlayerName(playerid,playername,24);
if(!strcmp(playername,"Marco_Triplo",true))
{
SetPlayerSkin(playerid , 187);
SetPlayerPos(playerid,1432.1899,-1000.1763,1640.2059);
labelBot[playerid] = Create3DTextLabel("Marco_Triplo",0xFFFFFFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(labelBot[playerid], playerid, 0.0, 0.0, 0.2);
}
}
OnPlayerRequestSpawn
pawn Код:
if(IsPlayerNPC(playerid))
{
new npcname[24];
GetPlayerName(playerid, npcname, 24);
if(!strcmp(npcname,"Marco_Triplo",true))
{
SetPlayerSkin(playerid, 187);
SetPlayerPos(playerid,1432.1899,-1000.1763,1640.2059);
}
}
I didn't put anything on OnPlayerConnect
Re: NPC Doesn't Connect -
Mike Garber - 31.03.2011
Did you even load the NPC script?
Re: NPC Doesn't Connect -
Alby Fire - 31.03.2011
This is my .pwn NPC script, put in npcmodes
pawn Код:
#define RECORDING "bot"
#define RECORDING_TYPE 2
#include <a_npc>
main(){}
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
(obviously the .rec file exists, and is in the npcmodes/recordings)
Re: NPC Doesn't Connect -
wheelman_WM - 31.03.2011
What kinda recording it was on foot or vehicle