23.01.2010, 10:41
When i enter the checkpoint my server crashed >.>
Crash code:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(gObjectiveReached) return;
if(gTeam[playerid] == TEAM_MEDIC)
{
limit++;
new string[128];
format(string, sizeof(string), "Robbed Times: %i", limit); //aanpassn
SendClientMessageToAll(oranje,"%s has robbed the bank!");
DisablePlayerCheckpoint (playerid);
PlaySoundForAll(1056);
TextDrawSetString(TextB, string);
if(limit == MAXSCORE)
{
SendClientMessageToAll(oranje,"The Bank has been Robbed!!!!");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && GetPlayerTeam(i) == TEAM_MEDIC)
{
SetTimer ("AttackWin2", 1000, false);
DisablePlayerCheckpoint (playerid);
SetPlayerScore(i, GetPlayerScore(i) + 2);
return;
}
}
}
}
}
Код:
Exception At Address: 0x00484850 Registers: EAX: 0x68207325 EBX: 0x00EA4673 ECX: 0x7FFFFFFE EDX: 0x0012F7C8 ESI: 0x0012F7C8 EDI: 0x0012FBF2 EBP: 0x0012F47C ESP: 0x0012F3F0 EFLAGS: 0x00010202 Stack: +0000: 0x0012FBC8 0x0012F7C8 0x00EA4644 0x00454BE5 +0010: 0x0012F44C 0x00000001 0x00000003 0x00000007 +0020: 0x00000000 0x00000819 0x00000000 0x00000000 +0030: 0x00000000 0x00000000 0x00000000 0x00000002 +0040: 0x00000000 0x00000000 0x68207325 0xFFFFFFFF +0050: 0x00000000 0x004997B0 0x01000819 0x00000030 +0060: 0x00000800 0x00000000 0x0012F45D 0x9C0A1901 +0070: 0x7C000020 0x009E5B18 0x00000018 0x00EA4840 +0080: 0x84A90000 0x98010000 0x000202A2 0x02FE0100 +0090: 0x82400100 0x86300000 0xDEB20064 0xE4C240EA +00A0: 0x40C240CA 0xC4C4DEA4 0x4058E4CA 0xE4EADEF2 +00B0: 0xE6D2DA40 0xDCDED2E6 0x40E6D240 0xA440DEE8 +00C0: 0xE840C4DE 0xC440CAD0 0x5CD6DCC2 0x00000000 +00D0: 0x00000000 0x009E6A90 0x0012F4FC 0x0012F500 +00E0: 0x009E0000 0x7C910222 0x0000000B 0x009E0898 +00F0: 0x009E0000 0x00000000 0x0012F4D8 0x0012F718 +0100: 0x0012F71C 0x7C90E920 0x7C910228 0xFFFFFFFF +0110: 0x00000FA0 0x7C911086 0x7C9101DB 0x0012F890 +0120: 0x0000004C 0x009E6A90 0x009E0178 0x00000035 +0130: 0x00000800 0x00000000 0x00000000 0x06C21901