Pawn.Offic3r
Ученик
Почему NPC сами по себе отключаются от сервера?
blank выглядит так:
server_log:
Код:
OnGameModeInit()
{
AddPlayerClass(285, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
ConnectNPC("Player", "blank");
return 1;
}
OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
SetPlayerPos(playerid, 0.0, 0.0, 0.0);
}
return 1;
}
Код:
#include a_samp
main()
{
}
public OnGameModeInit()
{
return 1;
}
public OnPlayerSpawn()
{
return 1;
}
Код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[19:38:00] hostname = "SA-MP Server" (string)
[19:38:00] filterscripts = "" (string)
[19:38:00] weburl = "www.wiki.pawno-info.ru" (string)
[19:38:00]
[19:38:00] Server Plugins
[19:38:00] --------------
[19:38:00] Loading plugin: crashdetect
[19:38:00] CrashDetect plugin 4.20
[19:38:00] Loaded.
[19:38:00] Loading plugin: mysql
[19:38:00] >> plugin.mysql: R41-4 successfully loaded.
[19:38:00] Loaded.
[19:38:00] Loading plugin: pawncmd
[19:38:00] [Pawn.CMD] plugin v3.3.3 by urShadow loaded
[19:38:00] Loaded.
[19:38:00] Loading plugin: pawnraknet
[19:38:00] [Pawn.RakNet]
| Pawn.RakNet 1.4.1 | 2016 - 2020
|--------------------------------
| Author and maintainer: urShadow
| Compiled: Jun 18 2020 at 14:19:11
|--------------------------------------------------------------
| Forum thread: https://forum.wiki.pawno-info.ru/showthread.php?t=640306
|--------------------------------------------------------------
| Repository: https://github.com/urShadow/Pawn.RakNet
|--------------------------------------------------------------
| Wiki: https://github.com/urShadow/Pawn.RakNet/wiki
[19:38:00] Loaded.
[19:38:00] Loading plugin: sscanf
[19:38:00]
[19:38:00] ===============================
[19:38:00] sscanf plugin loaded.
[19:38:00] Version: 2.8.3
[19:38:01] (c) 2018 Alex "Y_Less" Cole
[19:38:01] ===============================
[19:38:01] Loaded.
[19:38:01] Loading plugin: streamer
[19:38:01]
*** Streamer Plugin v2.9.4 by Incognito loaded ***
[19:38:01] Loaded.
[19:38:01] Loaded 6 plugins.
[19:38:01]
[19:38:01] Filterscripts
[19:38:01] ---------------
[19:38:01] Loaded 0 filterscripts.
[19:38:01] [Loading]: Successfully connection to the database.
[19:38:01] [debug] Long callback execution detected (hang or performance issue)
[19:38:01] [debug] AMX backtrace:
[19:38:01] [debug] #0 00001c08 in Iter_InitInternal (arr[][]=@001278f4, s0=1000, s1=2000) at C:\Users\Lenovo\Desktop\Copcorrupt\Royalist Gaming\gamemodes\..\includes\foreach.inc:1121
[19:38:01] [debug] #1 000169f8 in public SSCANF_OnGameModeInit () at C:\Users\Lenovo\Desktop\Copcorrupt\Royalist Gaming\gamemodes\test.pwn:171
[19:38:01] [debug] #2 00002228 in public PawnRakNet_OnGameModeInit () at C:\Users\Lenovo\Desktop\Copcorrupt\Royalist Gaming\gamemodes\..\includes\sscanf2.inc:211
[19:38:01] [debug] #3 00001dac in public PawnCmd_OnGameModeInit () at C:\Users\Lenovo\Desktop\Copcorrupt\Royalist Gaming\gamemodes\..\includes\Pawn.RakNet.inc:1029
[19:38:01] [debug] #4 00001d58 in public Iter_OnGameModeInit () at C:\Users\Lenovo\Desktop\Copcorrupt\Royalist Gaming\gamemodes\..\includes\Pawn.CMD.inc:127
[19:38:01] [debug] #5 native CallLocalFunction () in samp-server.exe
[19:38:01] [debug] #6 00000cb4 in public OnGameModeInit () at C:\Users\Lenovo\Desktop\Copcorrupt\Royalist Gaming\gamemodes\..\includes\foreach.inc:738
[19:38:01] [connection] 127.0.0.1:55463 requests connection cookie.
[19:38:01] Number of vehicle models: 0
[19:38:01] [Loading]: Factions have been successfully loaded.
[19:38:01] [Loading]: Faction 1 ranks have not been loaded.
[19:38:01] [Loading]: Faction 2 ranks have not been loaded.
[19:38:01] [Loading]: 29 faction 3 ranks have been successfully loaded.
[19:38:01] [Loading]: 16 faction 4 ranks have been successfully loaded.
[19:38:01] [Loading]: Faction 5 ranks have not been loaded.
[19:38:01] [Loading]: Permissions have not been loaded.
[19:38:01] [Loading]: Vehicles have not been loaded.
[19:38:02] [connection] incoming connection: 127.0.0.1:55463 id: 0
[19:38:02] [npc:join] Player has joined the server (0:127.0.0.1)
[19:38:05] [npc:part] Player has left the server (0:2)
