PDA

View Full Version : Command Crash Player


quochuy
03/10/2016, 10:19 AM
- Giveplayer cuffed,uncuff = crash?? :(
- Command

CMD:handcuff(playerid, params[])
{
new string[128],targetid;
if(sscanf(params, "u", targetid)) SendClientMessage(playerid, COLOR_GREY, " "SUDUNG" /handcuff [playerid]");
else
{
if (playerid == targetid) return SendClientMessage(playerid, COLOR_GREY, "Ban khong the cuff chinh minh.");
if(itemInPossession(playerid, 232) == 0) return SendClientMessage(playerid, COLOR_GREY, "Ban phai c cng tay de cong tay nguoi khac.");
if(PlayerInfo[playerid][pFaction] == 1)
{
if(PlayerToPlayer(playerid,targetid,3.0))
{
format(string, sizeof(string), "** %s lay cng tu sau lung ra v cng ly tay cua %s.", GetNameWithSpace(playerid, 1), GetNameWithSpace(targetid, 1));
ProxDetector(12, playerid, string, COLOR_PINK);
SetCameraBehindPlayer(targetid);
PlayerInfo[targetid][pCuffed] = 1;
SetPVarInt(playerid, "Cuffed", 1);
GameTextForPlayer(targetid, "~r~Cong tay", 2500, 3);
SetPlayerSpecialAction(targetid,SPECIAL_ACTION_CUF FED);
SetPlayerAttachedObject(targetid, HOLDOBJECT_CLOTH4, 19418, 5, 0.002000,0.037999,-0.004000,-12.600098,126.699996,-119.800048,1.000000,1.000000,1.000000);
ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 4.1, 0, 1, 1, 1, 0, 1);
SetTimerEx("ClearAnims", 3000, false, "i", playerid);
}
else SendClientMessage(playerid,COLOR_GREY,"Ban khong gan nguoi do!");
}
}
return 1;
}
CMD:uncuff(playerid, params[])
{
new string[128],targetid;
if(sscanf(params, "u", targetid)) SendClientMessage(playerid, COLOR_GREY, " "SUDUNG" /uncuff [playerid]");
else
{
if (playerid == targetid) return SendClientMessage(playerid, COLOR_GREY, "Ban khong the uncuff chnh mnh.");
if(PlayerInfo[playerid][pFaction] == 1)
{
if(PlayerToPlayer(playerid,targetid,3.0))
{
format(string, sizeof(string), "** %s su dung cha kha v mo cng tay cho %s.", GetNameWithSpace(playerid, 1), GetNameWithSpace(targetid, 1));
ProxDetector(12, playerid, string, COLOR_PINK);
PlayerInfo[targetid][pCuffed] = 0;
DeletePVar(playerid, "Cuffed");
SetPlayerSpecialAction(targetid,SPECIAL_ACTION_NON E);
RemovePlayerAttachedObject(targetid, HOLDOBJECT_CLOTH4);
}
else SendClientMessage(playerid,COLOR_GREY,"Ban gan nguoi do!");
}
}
return 1;
}


- Crash log

SA-MP 0.3.7
Exception At Address: 0x00746929
Base: 0x01E50000

Registers:
EAX: 0x00000000 EBX: 0x00000000 ECX: 0x7C91005D EDX: 0x00370001
ESI: 0x00000000 EDI: 0x7C80B741 EBP: 0x0022FFC0 ESP: 0x0022FE10
EFLAGS: 0x00010246

Stack:
+0000: 0x00748732 0x7FFDE000 0x01250000 0x00000000
+0010: 0x00828CB3 0x00856C80 0x008A5A08 0x7C910435
+0020: 0x7C91043E 0x7C80B741 0x00020000 0x7FFDE000
+0030: 0x0022FE7C 0x00825EA4 0x7FFDE000 0x7C901000
+0040: 0x0022FE34 0x00823B3E 0x0022FE94 0x7C90E920
+0050: 0x7C910460 0x7C980620 0x7C8021B9 0x7C802015
+0060: 0x7C80B741 0x00000000 0x7FFDE000 0x0022FFB0
+0070: 0x00825EA4 0x00887E20 0xFFFFFFFF 0x0022FE70
+0080: 0x00835342 0x00000065 0x0022FFC0 0x008246F1
+0090: 0x00400000 0x00000000 0x015823A2 0x0000000A
+00A0: 0x00000094 0x00000005 0x00000001 0x00000A28
+00B0: 0x00000002 0x76726553 0x20656369 0x6B636150
+00C0: 0x7F003320 0xB3B90C54 0x88D5E020 0xB7E36F38
+00D0: 0xFFFFFFFF 0x00000000 0x00000004 0x0000001F
+00E0: 0x8910B578 0xFFDFF540 0x80545C03 0xFFFFFFFF
+00F0: 0x00000246 0x80545A1B 0xB3B90C28 0x8910B578
+0100: 0xFFDFF120 0x8910B714 0x80503872 0x8910B5E8
+0110: 0x8910B578 0x804FB078 0x8910B6E4 0x8910B578
+0120: 0x8910B5AC 0x00000246 0x80644422 0x88F4B928
+0130: 0x00824588 0x00000000 0x0012E770 0x7FFDE000
+0140: 0xC0000005 0x7C801A81 0x015823A2 0x00000044
+0150: 0x01584A28 0x01584CB8 0x01584998 0x00000000
+0160: 0x00000000 0x00000000 0x00000000 0x00000000
+0170: 0x00000000 0x00000000 0x00000000 0x00000000
+0180: 0x00000000 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
+0190: 0x00000000 0x00000000 0x0022FEB0 0x0022FA34
+01A0: 0x0022FFE0 0x00825EA4 0x00888078 0x00000000
+01B0: 0x0022FFF0 0x7C817077 0x00000000 0x0012E770
+01C0: 0x7FFDE000 0x8054B6ED 0x0022FFC8 0x8910B578
+01D0: 0xFFFFFFFF 0x7C839AA8 0x7C817080 0x00000000
+01E0: 0x00000000 0x00000000 0x00824570 0x00000000
+01F0: 0x78746341 0x00000020 0x00000001 0x0000249C
+0200: 0x000000C4 0x00000000 0x00000020 0x00000000
+0210: 0x00000014 0x00000001 0x00000006 0x00000034
+0220: 0x00000114 0x00000001 0x00000000 0x00000000
+0230: 0x00000000 0x00000000 0x00000000 0x00000002
+0240: 0x00000000 0x00000000 0x00000000 0x00000214
+0250: 0x0000019C 0x00000000 0x2D59495B 0x000003B0
+0260: 0x00000032 0x000003E4 0x000002D8 0x00000000
+0270: 0x830202E4 0x000006BC 0x00000046 0x00000704

SCM Op: 0x0, lDbg: 0 LastRendObj: 0

Game Version: US 1.0
- Sorry for my bad english