Server gets closed when I connect NPC's
#1

Okay, I made an NPC yesterday called "GroveStreetBoss" with connecting name " [BOSS]Grove". It was working perfectly.

Now, today I made ANOTHER NPC called " BallaBoss" with connecting name "[BOSS]Balla".


Now the problem is:

I have a command /loadbots for admins to load the [BOSS]'s. Here it is:
pawn Код:
CMD:loadbots(playerid,params[])
{
    if(IsPlayerAdmin(playerid))
    {
            ConnectNPC("[BOSS]Balla", "BallaBoss");
            ConnectNPC("[BOSS]Grove", "GroveStreetBoss");
            SendClientMessage(playerid, GREEN, "Bots loaded successfully! ");
    }
    else return SendClientMessage(playerid, RED, "You need to be an RCON admin to use this command! ");
    return 1;
}

I do /loadbots and the samp-server.exe closes.

The log file is here:

Код:
---------------------------------
[12:27:08]  Los Santos Gangwars
[12:27:08] ----------------------------------

[12:27:08] Number of vehicle models: 12
[12:27:30] Incoming connection: 127.0.0.1:51127
[12:27:30] [join] Gangs_Rocks has joined the server (0:127.0.0.1)
[12:27:34] RCON (In-Game): Player #0 (Gangs_Rocks) has logged in.
[12:27:42] Incoming connection: 127.0.0.1:51128
[12:27:42] [npc:join] [BOSS]Balla has joined the server (1:127.0.0.1)
Here's my npcmodes folder: http://www.mediafire.com/download.php?4hzsz59wmz99sad
Reply
#2

Strange, worked for me when i tried it...
Reply
#3

Quote:
Originally Posted by JAMMIEISFTW
Посмотреть сообщение
Strange, worked for me when i tried it...
I don't know what's causing it. Checked EVERYTHING, But still, I don't find a fucking problem. I can send my code to someone whom I trust but someone who can ACTUALLY help :/
Reply
#4

You should try the crashdetect plugin
Reply
#5

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
You should try the crashdetect plugin
Doesn't show anything :/
Reply
#6

Can't see why this is happening. What is maxnpc set to in server.cfg?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)