Crash... -
I have some problems... Sometimes when player spawn's 2 - 3 seconds later he crashes...
Is there anything wrong on my OnPlayerSpawn or....
Код:
public OnPlayerSpawn(playerid)
{
if(pInfo[playerid][LogIned] == 0) SetPlayerSkin(playerid,pInfo[playerid][Skin]);
pInfo[playerid][LogIned] = 1;
if(duty[playerid] == 1) SetPlayerColor(playerid,COLOR_YELLOW);
else SetPlayerColor(playerid,COLOR_WHITE);
SetPlayerName(playerid,pInfo[playerid][Ime]);
TogglePlayerControllable(playerid,0);
SetTimerEx("spawn", 2500, 0, "i", playerid );
pInfo[playerid][Izpit] = 0;
SetPlayerScore(playerid, pInfo[playerid][Level]);
TextDrawHideForPlayer(playerid,Textdraw8);
Vucen[playerid] = 0;
if(pInfo[playerid][Death] == 1 && pInfo[playerid][Jail] == 0)
{
GivePlayerMoney(playerid, - 100);
SendClientMessage(playerid, COLOR_RED, "Doktor vas je pozdravil in vam zaračunal 200 $");
pInfo[playerid][Death] = 0;
SetPlayerSkin(playerid,pInfo[playerid][Skin]);
}
if(IsSpecing[playerid] == 1)
{
SetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]);// Remember earlier we stored the positions in these variables, now we're gonna get them from the variables.
SetPlayerInterior(playerid,Inter[playerid]);//Setting the player's interior to when they typed '/spec'
SetPlayerVirtualWorld(playerid,vWorld[playerid]);//Setting the player's virtual world to when they typed '/spec'
IsSpecing[playerid] = 0;//Just saying you're free to use '/spec' again YAY :D
IsBeingSpeced[spectatorid[playerid]] = 0;//Just saying that the player who was being spectated, is not free from your stalking >:D
}
TextDrawHideForPlayer(playerid,Textdraw0);
TextDrawHideForPlayer(playerid,Textdraw1);
TextDrawHideForPlayer(playerid,Textdraw2);
TextDrawHideForPlayer(playerid,Textdraw3);
TextDrawHideForPlayer(playerid,Textdraw4);
TextDrawHideForPlayer(playerid,Textdraw5);
TextDrawHideForPlayer(playerid,Textdraw6);
pInfo[playerid][VehBuy] = 0;
pInfo[playerid][VehBuyType] = 0;
DestroyVehicle(pInfo[playerid][VehBuyId]);
pInfo[playerid][VehBuyId] = 0;
return 1;
}
Re: Crash... -
Re: Crash... -
Are you sure it is your server? Maybe it is just their computer or a mod that they have that could be causing them to crash?
Re: Crash... -
Код:
SA-MP 0.3z
Exception At Address: 0x007324B6
Base: 0x04F70000
Registers:
EAX: 0x00000002 EBX: 0x0000006F ECX: 0x05697060 EDX: 0x00000008
ESI: 0x00000000 EDI: 0x131EBF20 EBP: 0x11C8D63C ESP: 0x0028FCA4
EFLAGS: 0x00210202
Stack:
+0000: 0x050E9AA8 0x050E9AA8 0x00000008 0x00000000
+0010: 0xFFFFFFFF 0x00FFFFFF 0x0A332430 0x0000001C
+0020: 0x0028FCF4 0x749E2F59 0x749E2EB0 0x0028FD24
+0030: 0x00000008 0x00000001 0x01DA455C 0x0A512B50
+0040: 0x00000001 0x0028FD08 0x7220017F 0x0000001C
+0050: 0x0028FD08 0x75241AD0 0x0A332430 0x0028FD24
+0060: 0x0A512920 0x0028FD2C 0x721FCD5E 0x01DA455C
+0070: 0x0028FD24 0x0000001C 0x062A1FC0 0xBEE1A3A0
+0080: 0x0000001C 0x00000001 0x0028FD60 0x00000009
+0090: 0x00000000 0x4108F2E3 0x191B72C9 0x0000001A
+00A0: 0x00000001 0x77176C30 0x00732639 0x11C8D63C
+00B0: 0x00000008 0x0CB3E584 0x00732BDC 0x050E9AA8
+00C0: 0x11C8D63C 0x00000008 0x77176C30 0x0000001A
+00D0: 0x015CB7A8 0x00733F2A 0x0CB3E500 0x43B6A52A
+00E0: 0x00000001 0x04FD8307 0x0053E01E 0x00000000
+00F0: 0x0053EAA6 0x01595D2C 0x0053EAC4 0x44700000
+0100: 0x44070000 0x0053ECC2 0x00000001 0x00619B71
+0110: 0x0000001A 0x00000001 0x00000001 0x0000000A
+0120: 0x00748DF0 0x0000001A 0x00000001 0x76751245
+0130: 0x00000000 0x0028FF88 0x7EFDE000 0x01828CFE
+0140: 0x4E9357A1 0x05600300 0x00000008 0x00000100
+0150: 0x00000008 0x00000102 0x43C80000 0x43960000
+0160: 0x00000000 0x00000000 0x00000320 0x00000258
+0170: 0x00000000 0x00000001 0x000A0478 0x00000113
+0180: 0x00000001 0x00000000 0x001A3F7F 0x000003C0
+0190: 0x0000021C 0x0000002C 0x0028FE2C 0x00825EE4
+01A0: 0x76751245 0x00000000 0x7EFDE000 0xFFFFFFFF
+01B0: 0x00821D57 0x00000000 0x00000000 0x0028FF88
+01C0: 0x00824731 0x00400000 0x00000000 0x01BC8B01
+01D0: 0x0000000A 0x00000094 0x00000004 0x0000000A
+01E0: 0x040A08AE 0x00000001 0x76726500 0x20656369
+01F0: 0x6B636150 0x00003120 0x00000000 0x00000000
+0200: 0x00000000 0x00000000 0x00000000 0x00000000
+0210: 0x00000000 0x00000000 0x00000000 0x00000000
+0220: 0x00000000 0x00000000 0x00000000 0x00000000
+0230: 0x00000000 0x00000000 0x00000000 0x00000000
+0240: 0x00000000 0x00000000 0x00000000 0x00000000
+0250: 0x00000000 0x00000000 0x00000000 0x00000000
+0260: 0x00000000 0x008245C8 0x00000000 0x00000000
+0270: 0x7EFDE000 0xC0000005 0x00000000 0x01BC8B01
SCM Op: 0x6BD, lDbg: 0 LastRendObj: 1232
Game Version: EU 1.0
State Information: Ped Context: 0
P1 (19,82) P2 (0,0) P3 (19,89)