16.04.2012, 10:57
Hello guys,
I made a DM server and my scripting basics are good, but I'm not a professional.
Okay, so I made my server and I use Zadmin4.0 FS from [ZFM]Zuc.
Now when I die or someone else die, the server crashes and it leaves me the following error:
This is my OnPlayerDeath() function in Zadmin4.0:
This is my OnPlayerDeath() function in my gamemode:
I can't find the problem or anything what causes the bug.
I made a DM server and my scripting basics are good, but I'm not a professional.
Okay, so I made my server and I use Zadmin4.0 FS from [ZFM]Zuc.
Now when I die or someone else die, the server crashes and it leaves me the following error:
Код:
[15:44:23] [debug] [Zadmin4.0.amx]: During execution of OnPlayerDeath(): [15:44:23] [debug] [Zadmin4.0.amx]: Run time error 4: "Array index out of bounds" [15:44:23] [debug] [Zadmin4.0.amx]: Array max. index is 31 but accessing an element at 65535 [15:44:23] [debug] [Zadmin4.0.amx]: Call stack (most recent call first): [15:44:23] [debug] The server has crashed executing 'Zadmin4.0.amx' [15:44:23] [debug] [Zadmin4.0.amx]: Call stack (most recent call first): [15:44:23] [debug] The server has crashed executing 'Zadmin4.0.amx' [15:44:23] [debug] [Zadmin4.0.amx]: Call stack (most recent call first):
pawn Код:
public OnPlayerDeath(playerid, killerid, reason){
Account[killerid][pKills]++;
Account[playerid][pDeaths]++;
return 1;}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
ResetPlayerWeapons(playerid);
SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
return 1;
}