Server gets closed when I connect NPC's - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server gets closed when I connect NPC's (
/showthread.php?tid=343865)
Server gets closed when I connect NPC's -
Gangs_Rocks - 19.05.2012
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
Re: Server gets closed when I connect NPC's -
JAMMIEISFTW - 19.05.2012
Strange, worked for me when i tried it...
Re: Server gets closed when I connect NPC's -
Gangs_Rocks - 19.05.2012
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 :/
AW: Server gets closed when I connect NPC's -
Nero_3D - 19.05.2012
You should try the
crashdetect plugin
Re: AW: Server gets closed when I connect NPC's -
Gangs_Rocks - 19.05.2012
Quote:
Originally Posted by Nero_3D
|
Doesn't show anything :/
Re: Server gets closed when I connect NPC's -
MP2 - 19.05.2012
Can't see why this is happening. What is maxnpc set to in server.cfg?