Crash every shot
#1

Hey.
I'm crashing every time I shot this actor. I've NPC which doesn't make me crash.
Crash report :
Код:
SA-MP 0.3.7
Exception At Address: 0x00000000
Base: 0x04140000

Registers:
EAX: 0x00000000	EBX: 0x00000001	ECX: 0x03B8B6A8	EDX: 0x00003C44
ESI: 0x00000064	EDI: 0x03B8B6A8	EBP: 0x0028F5EC	ESP: 0x0028F5E0
EFLAGS: 0x00210206

Stack:
+0000: 0x66BA28A1   0x03B8B6A8   0x03B8B6A8   0x00000000
+0010: 0x00469FF7   0x00003233   0x03B8B6A8   0x00000000
+0020: 0x66BA054F   0x03B87760   0x03B8B6A8   0x0046A220
+0030: 0x5B14FF5E   0x00000067   0x0028F678   0xFFFFFFFF
+0040: 0x00000015   0xFFE1E1E1   0x80808080   0xFF000000
+0050: 0x0053BFCC   0x01948398   0xFFFFFFFF   0xFFFFFFFF
+0060: 0x8DB7A027   0x041A4436   0xFFFFFFFF   0x041DDAAE
+0070: 0x01948398   0x5B148C3C   0xFFFFFFFF   0x0BE5A748
+0080: 0x0028F650   0x0028F01C   0x0028F6D0   0x041F5D64
+0090: 0x0421A678   0x00000002   0x0028F694   0x0053E986
+00A0: 0x0028F714   0x66AE006A   0x0028F714   0x66AE0570
+00B0: 0x00000001   0x0028F6DC   0x66ADC0DD   0x0028F6E8
+00C0: 0x01952560   0x66B38AAC   0x01948398   0x00000070
+00D0: 0xFFFFFFFF   0xFFFFFFFF   0x76E58FCE   0x76E5913E
+00E0: 0x00000000   0x69D95750   0x0028F6A4   0x0028F6A4
+00F0: 0x0028F700   0x66B346C0   0x00000001   0x0028F6F0
+0100: 0x66AE0552   0x01952574   0x00000001   0x0028F894
+0110: 0x0028F70C   0x66ADEBB7   0x0028F714   0x0028F894
+0120: 0x0028F874   0x66B346D8   0x00000000   0x0028F880
+0130: 0x66AE0C06   0x66B389B4   0x01948398   0x00000000
+0140: 0x00000000   0x00000000   0x0028F874   0x66B34965
+0150: 0xFFFFFFFF   0x0028F880   0x00000000   0x0028F894
+0160: 0x0000001A   0x00000001   0x00000000   0x00040A1A
+0170: 0x00000113   0x00000001   0x00000000   0x0419DB40
+0180: 0x0028F7A4   0x00000113   0x00000000   0x0419DB40
+0190: 0x00000000   0x00000020   0x00040A1A   0x76E58E71
+01A0: 0x00040A1A   0x00000113   0x00000001   0x00000000
+01B0: 0x00000113   0xDCBAABCD   0x00000000   0x0419DB40
+01C0: 0x00000113   0x0028F838   0x76E590D1   0xADA592C1
+01D0: 0x00040A1A   0x0028F838   0x76E5913E   0x76E590E8
+01E0: 0xAC04EB91   0x0028F904   0x01F32680   0x76E59115
+01F0: 0x00000024   0x00000001   0x00000000   0x00000000
+0200: 0x00000070   0xFFFFFFFF   0xFFFFFFFF   0x76E58FCE
+0210: 0x76E5913E   0x00000000   0x0419DB40   0x00000000
+0220: 0xAC04EBAD   0x01CB09F8   0x00000000   0x00000000
+0230: 0x00000001   0x00000000   0x00040A1A   0xAC04EB91
+0240: 0x00000000   0x00000020   0x0028F894   0x76E8F100
+0250: 0xDAC983F1   0xFFFFFFFE   0x0028F8A4   0x66B389B4
+0260: 0x01948398   0x00000000   0x00000113   0x00000001
+0270: 0x00000000   0x00000000   0x00000001   0xAC04EB0D

SCM Op: 0x6BD, lDbg: 0 LastRendObj: 3851

Game Version: US 1.0

State Information: Ped Context: 0
P0 (33,0) P1 (33,0) P2 (33,0) P3 (33,0) 
P46 (17,0) P47 (17,0) 
P48 (17,0) P49 (17,0)
Screen when I shoot the actor:
Reply
#2

Show us your OnPlayerGiveDamageActor callback.
Reply
#3

I don't have it, that's the problem.
I create the actor with :
PHP код:
forward CreateDealer();
public 
CreateDealer()
{
    new 
rand randomEx(0sizeof(ActorPositions)),
        
str[190];
    
dStats[d_coGraines] =
    
dStats[d_caGraines] = DEALER_GRAINES_MIN;
    
dStats[dID] = CreateActor(1ActorPositions[rand][0], ActorPositions[rand][1], ActorPositions[rand][2], ActorPositions[rand][3]);
    
ApplyActorAnimation(dStats[dID], "DEALER""DEALER_IDLE"4.1truetruetruetrue800);
    
format(strsizeof(str), "Dealer de drogue\n{668cff}%i "WHITE_U"graines de {668cff}plant de cola\n{00b33c}%i "WHITE_U"graines de {00b33c}plant de chamvre"dStats[d_coGraines], dStats[d_caGraines]);
    
dStats[dLabel] = CreateDynamic3DTextLabel(strREDActorPositions[rand][0], ActorPositions[rand][1], ActorPositions[rand][2]+1.0010.0);
    return 
1;

Reply
#4

Bump!
Reply
#5

The Actor gives this problem only to you?
Reply
#6

Quote:
Originally Posted by ReshiramZekrom
Посмотреть сообщение
The Actor gives this problem only to you?
It's a local server so.. yes. I'll make appear some actors and shot them to see what happens.

EDIT: Well.. Even if I spawn an actor. Shot him make me crash.
I put it on my script, nothing change:
Код:
public OnPlayerGiveDamageActor(playerid, damaged_actorid, Float:amount, weaponid, bodypart)
{
	return 1;
}
Reply
#7

Maybe it's a client problem and not a server sided one. Just try to invite some friends into the local server and make them shoot the actors. If you still crash but they don't, I think that your gta sa has some kind of problem
Reply
#8

NPC or Actor?
Show your OnPlayerGeveDamage & OnPlayerTakeDamage
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)