29.10.2014, 14:41
There its some bug, when you first time join in the server and at spawn place your player skin its changing and bugged you cant move maybe 10sec then you can and it work or you are bugged, so i run the debug with pawno and also i use the crashdetect plugin.
Here its some screenshots made about the bug changing skin or like almost killing the graphics(Missing objects etc stuff):
http://imgur.com/a/VNdmw
OnPlayerSpawn:
Here its some screenshots made about the bug changing skin or like almost killing the graphics(Missing objects etc stuff):
http://imgur.com/a/VNdmw
pawn Код:
[15:30:11] [debug] Accessing element at index 682 past array upper bound 681
[15:30:11] [debug] AMX backtrace:
[15:30:11] [debug] #0 00005758 in ?? (0x43f98000, 0x42ce0000, 0x42d70000, 0x404ccccd, 0xff0000ff, 0x42c80000) from PBRP.amx
[15:30:11] [debug] #1 003ce4f8 in ?? (0x00000000) from PBRP.amx
[15:30:11] [debug] #2 00072e78 in ?? (0x00000000) from PBRP.amx
[15:30:11] [debug] #3 0000b5f4 in public OnPlayerSpawn (0x00000000) from PBRP.amx
OnPlayerSpawn:
pawn Код:
public OnPlayerSpawn(playerid)
{
TogglePlayerSpectating(playerid, false);
// Anti F4 Bug - Logging/Registering
TextDrawHideForPlayer(playerid, Logintext0);
TextDrawHideForPlayer(playerid, Logintext1);
TextDrawHideForPlayer(playerid, Logintext2);
TextDrawHideForPlayer(playerid, Logintext3);
TextDrawHideForPlayer(playerid, Logintext4);
TextDrawHideForPlayer(playerid, Logintext5);
TextDrawHideForPlayer(playerid, Logintext6);
StopAudioStreamForPlayer(playerid);
if(!PlayerInfo[playerid][pLoggedIn] && !IsPlayerNPC(playerid))
{
if(IsPlayerNPC(playerid)) return 1;
SetPlayerPos(playerid, 1975.203002, 3779.311523, -50.243506);
SetPlayerCameraPos(playerid, 1975.203002, 3779.311523, 100.243506);
SetPlayerCameraLookAt(playerid, 1975.203002, 3779.311523, -0.243506);
SetSpawnInfo( playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
new file[128];
format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
// Player isn't banned
if(dini_Int(file, "AdminAccount") == 1)
{
format(file, sizeof(file), "users/%s.ini",RPNU(playerid));
SetPlayerName(playerid, dini_Get(file, "OldName"));
format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
SSSShowDialog(playerid, 2);
}
if(!dini_Exists(file))
{
SSSShowDialog(playerid, 1);
return 1;
}
else
{
SSSShowDialog(playerid, 2);
}
return 1;
}
// Actual Spawning
TextDrawShowForPlayer(playerid, randommsg);
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname, "GOD", true)) //Checking if the NPC's name is GOD
{ //Putting the NPC into the vehicle we created for it.
return 1;
}
return 1;
}
if(PlayerInfo[playerid][pLoggedIn] && PlayerInfo[playerid][pSpawn])
{
FalseBan[playerid] = 0;
SetTimerEx("FalseBanFix", 6000, false, "i", playerid);
SpawnChar(playerid);
}
if (!GetPVarInt(playerid, "color")) SetPVarInt(playerid, "color", 18643);
return 1;
}