for(new i = 0; i < sizeof(IntInfo); i++)
{
if (PlayerToPoint(3, playerid,IntInfo[i][iEntrancex], IntInfo[i][iEntrancey], IntInfo[i][iEntrancez]))
{
if(IntInfo[i][iType] == 5)
{
if(PlayerInfo[playerid][pMember] >= 0)
{
GameTextForPlayer(playerid, "~w~type /exit~n~to get out", 5000, 3);
SetPlayerInterior(playerid,IntInfo[i][iInt]);
SetPlayerVirtualWorld(playerid,IntInfo[i][iWorld]);
Pause(playerid);
SetPlayerPos(playerid,IntInfo[i][iExitx], IntInfo[i][iExity], IntInfo[i][iExitz]);
IntEntered[playerid] = i;
return 1;
}
}
GameTextForPlayer(playerid, "~w~type /exit~n~to get out", 5000, 3);
SetPlayerInterior(playerid,IntInfo[i][iInt]);
SetPlayerVirtualWorld(playerid,IntInfo[i][iWorld]);
Pause(playerid);
SetPlayerPos(playerid,IntInfo[i][iExitx], IntInfo[i][iExity], IntInfo[i][iExitz]);
IntEntered[playerid] = i;
if(IntInfo[i][iType] == 1)
{
SetPlayerShopName(playerid,"FDBURG");
}
else if(IntInfo[i][iType] == 2)
{
SetPlayerShopName(playerid,"FDPIZA");
}
else if(IntInfo[i][iType] == 3)
{
SetPlayerShopName(playerid,"FDCHICK");
}
else if(IntInfo[i][iType] == 4)
{
SendClientMessage(playerid,COLOR_GRAD4,"Type /skin to change your clothes.");
}
}
}
I don't see nothing that can make server restart/crash but btw see in the server console why ot restart, see server logs too then you can see if it crash when you do /enter!
|
-------------------------- SA-MP Server: 0.3c Exception At Address: 0x7C812AEB Registers: EAX: 0x0012FB60 EBX: 0x00000000 ECX: 0x00000000 EDX: 0x00000002 ESI: 0x0012FBE8 EDI: 0x03135560 EBP: 0x0012FBB0 ESP: 0x0012FB5C EFLAGS: 0x00000206 Stack: +0000: 0x031354E0 0xE06D7363 0x00000001 0x00000000 +0010: 0x7C812AEB 0x00000003 0x19930520 0x0012FC18 +0020: 0x00BA6B88 0x03136538 0x0000001F 0x00BC5848 +0030: 0x0000001A 0x0012FBB0 0x784859BE 0x03136538 +0040: 0x0000001F 0x00BC5848 0x0000001A 0x0000001F +0050: 0x0000001F 0x0012FBE8 0x7857DBF9 0xE06D7363 +0060: 0x00000001 0x00000003 0x0012FBDC 0xE06D7363 +0070: 0x00000001 0x00000000 0x00000000 0x00000003 +0080: 0x19930520 0x0012FC18 0x00BA6B88 0x0012FC50 +0090: 0x00B8FD17 0x0012FC18 0x00BA6B88 0xFFFFFFFF +00A0: 0x7C9101BB 0x00BC5848 0x00BC0000 0x00000000 +00B0: 0x00000018 0x0000001A 0x0000001F 0x00BA51FC +00C0: 0x00000000 0x00000000 0x00000018 0x03136538 +00D0: 0x00000004 0x0012FB8C 0x031360C8 0x0000001A +00E0: 0x0000001F 0x7C910040 0x0012FCF8 0x00BA3832 +00F0: 0x00000000 0x031360C8 0x00B9BD2D 0x00000000 +0100: 0x031360C8 0x031362C8 0x031362E8 0x030FED10 +0110: 0x03135598 0x7F800000 0x785838BB 0x03138878 +0120: 0x00000000 0x031362D0 0x00000000 0x030FED10 +0130: 0x03135598 0x0313630C 0x03137E40 0x00000000