18.09.2011, 15:44
I have an identical script running on two servers, on one each NPC spawns and is placed into the relevant vehicle with the relevant skin. On the other server, until today, it did the same. But now they simply spawn at 0.0,0.0,0.0 with the CJ skin and do nothing.
Now to give you an idea of how I know they aren't calling OnPlayerSpawn, I added this:
(Amongst other code, but this is at the very start of OnPlayerSpawn)
This produces the following on one server:
But nothing on the other. Both servers are high end dedicated servers running CentOS. Plus as I say, the server with the issue worked perfectly till today, and I have changed absolutely nothing
Any idea what could be causing this?
I find it hard to believe that it could be script related because both scripts are identical, and because I have changed nothing in the last few days.
I also don't think it's any files under npcmodes, because I uploaded the files from the broken server to the working server and it still worked.
Now to give you an idea of how I know they aren't calling OnPlayerSpawn, I added this:
Код:
public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC. { printf("NPC Spawning");
This produces the following on one server:
Quote:
[16:17:52] NPC Spawning [16:17:52] NPC Spawning [16:17:52] NPC Spawning [16:17:52] NPC Spawning [16:17:52] NPC Spawning [16:17:52] NPC Spawning |
Any idea what could be causing this?
I find it hard to believe that it could be script related because both scripts are identical, and because I have changed nothing in the last few days.
I also don't think it's any files under npcmodes, because I uploaded the files from the broken server to the working server and it still worked.