NPC Doesn't Connect
#1

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
Reply
#2

is your server, password protected?
Reply
#3

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
Reply
#4

show us your sever log
Reply
#5

Код:
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
Reply
#6

there is not incoming connection. Weired. Can you show me your OnPlayerConnect and OnGameModeInit. The NPC part
Reply
#7

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
Reply
#8

Did you even load the NPC script?
Reply
#9

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)
Reply
#10

What kinda recording it was on foot or vehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)