Hey,
Ich habe folgendes Problem sobald mich ein Zombie Bot angreifen soll (MoveRNPC) Crasht der Server ich habe es ohne MoveRNPC getestet und der Bot führ die Animation aus
OnGameModeInit
mysql_tquery(MySQL, "SELECT * FROM `Zombies`", "ZombiesLaden");
ZombiesLaden
public ZombiesLaden()
{
new Name[32];
for(new i=0;i<MAX_ZOMBIES;i++)
{
Zombie[i][Position_X] = cache_get_field_content_float(i, "Position_X");
Zombie[i][Position_Y] = cache_get_field_content_float(i, "Position_Y");
Zombie[i][Position_Z] = cache_get_field_content_float(i, "Position_Z");
Zombie[i][Position_A] = cache_get_field_content_float(i, "Position_A");
cache_get_field_content(i, "AnimLib", Zombie[i][AnimLib], MySQL, 32);
cache_get_field_content(i, "AnimName", Zombie[i][AnimName], MySQL, 32);
format(Name, 32, "Zombie_%d", i);
ConnectRNPC(Name);
}
SetTimer("ZombieAngriff", 10000, true);
return 1;
}
ZombieAngriff
public ZombieAngriff()
{
new Float:PositionX, Float:PositionY, Float:PositionZ;
for(new ZombieID=0;ZombieID<MAX_ZOMBIES;ZombieID++)
{
for(new SpielerID=0;SpielerID<MAX_PLAYERS;SpielerID++)
{
if(IsPlayerNPC(SpielerID) == 0)
{
if(PlayerToPlayer(SpielerID, ZombieID, 15.0) == 1)
{
GetPlayerPos(SpielerID, PositionX, PositionY, PositionZ);
ApplyAnimation(ZombieID, "PED", "WALK_DRUNK", 4.1, 1, 1, 1, 1, 1, 1);
MoveRNPC(ZombieID, PositionX, PositionY, PositionZ, RNPC_SPEED_RUN);
SendClientMessage(SpielerID, COLOR_WHITE, "Du bist zu nah an einem Zombie");
}
}
}
}
return 1;
}
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[14:01:49] filterscripts = "" (string)
[14:01:49]
[14:01:49] Server Plugins
[14:01:49] --------------
[14:01:49] Loading plugin: crashdetect.dll
[14:01:49] CrashDetect v4.15.1 is OK.
[14:01:49] Loaded.
[14:01:49] Loading plugin: mysql.dll
[14:01:49] >> plugin.mysql: R39-4 successfully loaded.
[14:01:49] Loaded.
[14:01:49] Loading plugin: sscanf.dll
[14:01:49]
[14:01:49] ===============================
[14:01:49] sscanf plugin loaded.
[14:01:49] Version: 2.8.1
[14:01:49] (c) 2012 Alex "Y_Less" Cole
[14:01:49] ===============================
[14:01:49] Loaded.
[14:01:49] Loading plugin: streamer.dll
[14:01:49]
*** Streamer Plugin v2.7.9 by Incognito loaded ***
[14:01:49] Loaded.
[14:01:49] Loading plugin: RNPC.dll
[14:01:49] RNPC V0.4.1 by Mauzen (03.12.2014)
[14:01:49] Loaded.
[14:01:49] Loading plugin: MapAndreas.dll
[14:01:49] Loaded.
[14:01:49] Loaded 6 plugins.
[14:01:49]
[14:01:49] Filterscripts
[14:01:49] ---------------
[14:01:49] Loaded 0 filterscripts.
[14:01:49] RNPC versionchecker: checking for updates...
[14:01:49] ||>>|| [ Mysql ] Die Verbindung zur DB (= Datenbank) wurde hergestellt ||<<||
[14:01:49]
----------------------------------
[14:01:49] German DayZ by ZeusLukas
[14:01:49] ----------------------------------
[14:01:49] Number of vehicle models: 0
[14:01:49] [connection] 127.0.0.1:63780 requests connection cookie.
[14:01:49] [connection] 127.0.0.1:63781 requests connection cookie.
[14:01:50] [connection] incoming connection: 127.0.0.1:63780 id: 0
[14:01:50] [connection] incoming connection: 127.0.0.1:63781 id: 1
[14:01:50] [npc:join] Zombie_0 has joined the server (0:127.0.0.1)
[14:01:50] [npc:join] Zombie_1 has joined the server (1:127.0.0.1)
[14:01:54] [connection] ---.---.-.---:----- requests connection cookie.
[14:01:55] [connection] incoming connection: ---.---.-.--:----- id: 2
[14:01:55] [join] ZeusLukas has joined the server (-:---.---.-.--)
Alles anzeigen