[BUG]SetPlayerAttachedObject Crash with Particles
#1

i was scripting a bit with this function, and had this code:

pawn Code:
if(!strcmp(cmd, "/obtest", true)){
    new tmp[256];
    tmp = strtok(cmdtext, idx);
    if(strlen(tmp))return SetPlayerAttachedObject(playerid, strval(tmp), 18689, 2, 0.0, 0.0, 0.2);
    return SendClientMessage(playerid, COLOR_WHITE, "{0xFF0000FF}Esto {0x0000FFFF}es {0xFFB500FF}un {0xFF0FF0FF}error");
}
and when i use that comand the client crash.

soo i think it's a bug, it i scripted something wrong please tell me.
Reply
#2

Paste the crash information
Reply
#3

The colour codes in your SendClientMessage is wrong btw...
pawn Code:
return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}Esto {0000FF}es {FFB500}un {FF0FF0}error");
I doubt it is that though l0l
Reply
#4

Quote:
Originally Posted by Kalcor
View Post
Paste the crash information
Code:
Exception At Address: 0x02968E93

Registers:
EAX: 0xE105FE00	EBX: 0x042A40E5	ECX: 0x00000010	EDX: 0x07B412E0
ESI: 0xE8BA10E0	EDI: 0x0022FD40	EBP: 0x0022FD24	ESP: 0x0022FD0C
EFLAGS: 0x00210282

Stack:
+0000: 0x042A4070   0x042A40D9   0x050D7E80   0x078417F8
+0010: 0x07B412E0   0x07841768   0x0022FDA0   0x02969D10
+0020: 0x0022FD40   0x00000005   0x0000001A   0x042AE748
+0030: 0x00000000   0x7E3ADEB2   0x00561A8E   0x0022FD4C
+0040: 0x18C42F02   0x000295DB   0x0053D07D   0x0000001A
+0050: 0x05074A44   0x00601BA2   0x00000000   0x04F678E0
+0060: 0x00000000   0x00000000   0x3F800000   0x43AB07F8
+0070: 0x435CAA12   0xC3292192   0x42B3F9A2   0x4362F6AE
+0080: 0x042A4070   0x00000001   0x00866F60   0x07588418
+0090: 0x042A4185   0x7E3ADEB2   0x0291D65B   0x0000001A
+00A0: 0x00000001   0x029620BF   0x0000001A   0x00000001
+00B0: 0x7E3ADEB2   0x0022FDD4   0x00000000   0x00296C37
+00C0: 0x00021C04   0x07585234   0x0053EA08   0x43C80000
+00D0: 0x43960000   0x0053ECC2   0x00000001   0x00619B71
+00E0: 0x0000001A   0x00000001   0x00000001   0x0000000A
+00F0: 0x00748DF0   0x0000001A   0x00000001   0x7C80B741
+0100: 0x00000000   0x0022FFC0   0x7FFD6000   0x01250000
+0110: 0x408BA7E5   0x002527F0   0x00000008   0x00000100
+0120: 0x00000008   0x00000102   0x43C80000   0x43960000
+0130: 0x00000000   0x00000000   0x00000320   0x00000258
+0140: 0x00000000   0x002191C0   0x00640194   0x00000200
+0150: 0x00000000   0x012C0190   0x13B725A4   0x00000190
+0160: 0x0000012C   0x0000002C   0x00000000   0x7FFD6000
+0170: 0x0022FFB0   0x00825EE4   0x00887E20   0xFFFFFFFF
+0180: 0x0022FE70   0x00835382   0x00000065   0x0022FFC0
+0190: 0x00824731   0x00400000   0x00000000   0x015823EC
+01A0: 0x0000000A   0x00000094   0x00000005   0x00000001
+01B0: 0x00000A28   0x00000002   0x76726553   0x20656369
+01C0: 0x6B636150   0x89003320   0x878F4C28   0x89922580
+01D0: 0x8A494BD0   0xB843868B   0x878F4C8C   0x00000000
+01E0: 0x0000001F   0x88693838   0xFFDFF540   0x80545BD3
+01F0: 0xFFFFFFFF   0x00000246   0x805459EB   0x8A494C28
+0200: 0x88693838   0xFFDFF120   0x886939D4   0x80503872
+0210: 0x886938A8   0x88693838   0x804FB078   0x886939A4
+0220: 0x88693838   0x8869386C   0xB7D088FD   0x80643AD0
+0230: 0x883FE020   0x008245C8   0x00000000   0x0012F420
+0240: 0x7FFD6000   0xC0000005   0x00000005   0x015823EC
+0250: 0x00000044   0x01584808   0x01584818   0x01584830
+0260: 0x00000000   0x00000000   0x00000000   0x00000000
+0270: 0x00000000   0x00000000   0x00000000   0x00000000

SCM Op: 0x470, lDbg: 0

Game Version: EU 1.0

State Information: Ped Context: 0
Quote:
Originally Posted by [03]Garsino
View Post
The colour codes in your SendClientMessage is wrong btw...
pawn Code:
return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}Esto {0000FF}es {FFB500}un {FF0FF0}error");
I doubt it is that though l0l
that's is ok, it works properly
Reply
#5

Update to the RC1-2 client:
https://sampforum.blast.hk/showthread.php?tid=194031
Reply
#6

Just a question, does SetPlayerAttachedObject has a return? Otherwise that could bring a crash as far as I guess?
Reply
#7

Why would it cause a crash..?
Reply
#8

thanks for the fix
Reply
#9

I have the same problem on my server with SetPlayerAttachedObject
it causes crash for other player

http://forum.sa-mp.com/showthread.ph...edobject+crash
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)