Player's SAMP crashing when spawning.
#1

Entirely random, I can't seem to find the actual cause.
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
    {
        new npcname[MAX_PLAYER_NAME];
//----------------------------------NPC
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname,"Reacher",true))
         {//
            SetPlayerSkin(playerid, 60);
        }
    }
    else
    {
        SetPlayerSkin(playerid, SpawnSkin[playerid]);
        GivePlayerWeaponEx(playerid);
        ClearAnimations(playerid);
        TogglePlayerControllable(playerid, 1);
        PreloadAnimLib(playerid,"BOMBER");
        PreloadAnimLib(playerid,"RAPPING");
        PreloadAnimLib(playerid,"SHOP");
        PreloadAnimLib(playerid,"BEACH");
        PreloadAnimLib(playerid,"SMOKING");
        PreloadAnimLib(playerid,"ON_LOOKERS");
        PreloadAnimLib(playerid,"DEALER");
        PreloadAnimLib(playerid,"CRACK");
        PreloadAnimLib(playerid,"CARRY");
        PreloadAnimLib(playerid,"COP_AMBIENT");
        PreloadAnimLib(playerid,"PARK");
        PreloadAnimLib(playerid,"INT_HOUSE");
        PreloadAnimLib(playerid,"FOOD");
        PreloadAnimLib(playerid,"GANGS");
        PreloadAnimLib(playerid,"ped");
        PreloadAnimLib(playerid,"FAT");
        PreloadAnimLib(playerid, "PYTHON");
        PreloadAnimLib(playerid, "MEDIC");
        PreloadAnimLib(playerid, "DODGE");
        PreloadAnimLib(playerid, "GRAFFITI");
        PreloadAnimLib(playerid, "KNIFE");
        PreloadAnimLib(playerid,"SWORD");
        TextDrawShowForPlayer(playerid,Servt);
        TextDrawShowForPlayer(playerid,txtTimeDisp);

    }
    return 1;
}
Код:
SA-MP 0.3.7
Exception At Address: 0x007324B6
Base: 0x034F0000

Registers:
EAX: 0xC1000000 EBX: 0x0000002F ECX: 0x13254840 EDX: 0x00000010
ESI: 0x00000007 EDI: 0x1398D0B8 EBP: 0x13AAB69C ESP: 0x0022F874
EFLAGS: 0x00010293

Stack:
+0000: 0x036B0F68   0x036B0F68   0x00000010   0xFFFFFF00
+0010: 0xFFFFFFFF   0x00FFFFFF   0x729361A4   0x05B50498
+0020: 0x0022F8BC   0x72980220   0x05B50498   0x0335E2E0
+0030: 0x0335E2E0   0x0335B1AC   0x05C77004   0x00000000
+0040: 0x00000000   0x05C774D4   0x0335E314   0x007F96F8
+0050: 0x05C77004   0x00000014   0x0335B1AC   0x0022F97C
+0060: 0xFFFFFF00   0x0335E2E0   0x00000000   0x00000000
+0070: 0xCF87834E   0x019A1A80   0x00BB4240   0x00000000
+0080: 0x00000001   0x0022F8E4   0x0022F988   0x00000010
+0090: 0x00000000   0x41800000   0x035A27AD   0x05C77000
+00A0: 0x00001000   0x0022F97C   0x00732639   0x13AAB69C
+00B0: 0x00000010   0x03E819C8   0x00732BDC   0x036B0F68
+00C0: 0x13AAB69C   0x00000010   0x0022F97C   0x019A1A80
+00D0: 0x033950F0   0x007337EA   0x03E81900   0x43640EF0
+00E0: 0x019A1AF0   0x0053DFF3   0xFFFFFFFF   0x0053EAA6
+00F0: 0x0335B1AC   0x0053EAC4   0x44000000   0x43C00000
+0100: 0x6FACE130   0x00000001   0x0022F994   0x6FACC643
+0110: 0x0022F9B4   0x0022F9CC   0x6FB1A858   0x00000000
+0120: 0x0022F9BC   0x6FACE06E   0x6FB1FAB0   0x019A1A80
+0130: 0x6FAC316D   0x00000000   0x0022F99C   0x0022F9D4
+0140: 0x00000001   0x019A1AE0   0x0022F9D8   0x6FACCB47
+0150: 0x0022F9E0   0x0022FA94   0x0022FA74   0x6FB1A858
+0160: 0x00000000   0x0022FA80   0x6FACE617   0x6FB1F9C4
+0170: 0x019A1A80   0x6FB1AAC1   0xFFFFFFFF   0x00000000
+0180: 0x6FACE587   0x0022FA94   0x0000001A   0x00000001
+0190: 0x00000000   0xFFFFFFFF   0x75C1C590   0x75C1C641
+01A0: 0x0022FA40   0x00000000   0x00000000   0x00000000
+01B0: 0x0022F9E0   0x0022FB9C   0x0022FA8C   0x75C6629B
+01C0: 0xA4393895   0xFFFFFFFE   0x75C1C5FE   0x75C1CC19
+01D0: 0x00000000   0x75C16445   0x75C1647A   0x6FB1F9C4
+01E0: 0x019A1A80   0x00000000   0x00000000   0x00000000
+01F0: 0x02152C00   0x019A1A80   0x019A29F8   0x0022FA9C
+0200: 0x0022FB9C   0x6FB1AA60   0x00000001   0x0022FA8C
+0210: 0x6FACE50C   0x0022FA94   0x75C080E0   0x0053ECC2
+0220: 0x00000001   0x00619B71   0x0000001A   0x00000001
+0230: 0x00000001   0x0000000A   0x00748DA0   0x0000001A
+0240: 0x00000001   0x0000000A   0x01951FD0   0x0022FB68
+0250: 0xFFFFFFFF   0x01000028   0x4EBE7819   0x032110F0
+0260: 0x00000008   0x00000100   0x00000008   0x00000102
+0270: 0x44000000   0x43C00000   0x00000000   0x00000000

SCM Op: 0x470, lDbg: 0 LastRendObj: 365

Game Version: US 1.0

State Information: Ped Context: 0
This happens with or without mods I believe.

It seemingly happens under OnPlayerSpawn, of course. Here is my code.
Reply
#2

Bump. Still unresolved.
Reply
#3

Load crashdetect plugin and post the logs again from samp_logs.
Reply
#4

Crashdetect is for server crashes is it not?
Reply
#5

This code working fine for me, even with mods, show your PreloadAnimLib and GivePlayerWeaponEx
An invalid animation library will crash the player's game, but i checked all the library's you used and they exists..
Reply
#6

It tends to be entirely random at strange times.
Reply
#7

Then it's probably your game, give me your sever ip if you want to check from other game
Reply
#8

Server.bonecountyrp.com
Reply
#9

I checked, it's fine, something wrong from your client not server
Reply
#10

Quote:
Originally Posted by Shinja
Посмотреть сообщение
I checked, it's fine, something wrong from your client not server
It happens to everyone eventually. Trust me, every client went through this at some point.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)