22.01.2010, 16:19
Hey, I get this crash with my script when i do /enter:
I can't find the problem because nothing looks wrong in the /enter script:
I'm running a Linux 0.3 R4 Server, if that would explain something
Код:
Exception At Address: 0x0071A190 Registers: EAX: 0x00000000 EBX: 0x00BAAE00 ECX: 0x00000000 EDX: 0x0000018A ESI: 0x00233FFF EDI: 0x44520000 EBP: 0x00BAAE40 ESP: 0x0022FA38 EFLAGS: 0x00210297 Stack: +0000: 0x00BAAE64 0x00BAAE00 0x00339400 0x00000000 +0010: 0x78652F7E 0x00007469 0x00000000 0x00000000 +0020: 0x00000000 0x00000000 0x00000000 0x00000000 +0030: 0x00000000 0x00000000 0x00000000 0x00000000 +0040: 0x00000000 0x00000000 0x00000000 0x00000000 +0050: 0x00000000 0x00000000 0x00000000 0x00000000 +0060: 0x00000000 0x00000000 0x00000000 0x00000000 +0070: 0x00000000 0x00000000 0x00000000 0x00000000 +0080: 0x00000000 0x00000000 0x00000000 0x00000000 +0090: 0x00000000 0x00000000 0x00000000 0x00000000 +00A0: 0x00000000 0x00000000 0x00000000 0x00000000 +00B0: 0x00000000 0x00000000 0x00000000 0x00000000 +00C0: 0x00000000 0x00000000 0x00000000 0x00000000 +00D0: 0x00000000 0x00000000 0x00000000 0x00000000 +00E0: 0x00000000 0x00000000 0x00000000 0x00000000 +00F0: 0x00000000 0x00000000 0x00000000 0x00000000 +0100: 0x00000000 0x00000000 0x00000000 0x00000000 +0110: 0x00000000 0x00000000 0x00000000 0x00000000 +0120: 0x00000000 0x00000000 0x00000000 0x00000000 +0130: 0x00000000 0x00000000 0x00000000 0x00000000 SCM Op: 0x53F, lDbg: 0 Game Version: US 1.0 State Information: Ped Context: 0
pawn Код:
if(strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(3.0, playerid,172.8305,1176.9070,14.7578))
{
SetPlayerInterior(playerid,9);
SetPlayerPos(playerid,366.0002, -9.4338, 1001.8516);
SetCameraBehindPlayer(playerid);
}
else if (PlayerToPoint(3.0, playerid,-180.5707,1063.4312,19.7422)) // Victim clothes
{
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,225.0291,-8.6802,1002.2109);
SetCameraBehindPlayer(playerid);
}
else if (PlayerToPoint(3.0, playerid,-180.0271,1133.1217,19.7422))
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,386.5259, 173.6381, 1008.3828);
SetCameraBehindPlayer(playerid);
}
else if (PlayerToPoint(3.0, playerid,-181.1186,1034.7052,19.7422))
{
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,-26.8339, -55.5846, 1003.5469);
SetCameraBehindPlayer(playerid);
}
}
return 1;
}