28.10.2018, 13:34
Quote:
Compiling with -d3 flag will log the line.
The run time error is in a non-public function with one parameter (playerid) which is `ResetDuelInfo` function. It also confirms it because it stops the code execution (account check). |
EDIT:
I just took my duel system out of the gamemode and as you said ResetDuelInfo was causing it.. Here's the code for that:
PHP код:
stock ResetDuelInfo(playerid)
{
for(new i = 0; i < 3; i++)
{
DuelInfo[playerid][Weapon][i] = 0;
}
for(new i = 0; i < 4; i++)
{
DuelerID[DuelInfo[playerid][Team][i]] = NONE;
DuelInfo[playerid][Team][i] = NONE;
DuelInfo[playerid][StatusTeam][i] = 0;
}
for(new i = 0; i < 4; i++)
{
DuelerID[DuelInfo[playerid][Enemy][i]] = NONE;
DuelInfo[playerid][Enemy][i] = NONE;
DuelInfo[playerid][StatusEnemy][i] = 0;
}
DuelInfo[playerid][Team][0] = playerid;
DuelInfo[playerid][StatusTeam][0] = 2;
DuelInfo[playerid][Map] = 0;
DuelInfo[playerid][Health] = 100;
DuelInfo[playerid][Armour] = 0;
DuelInfo[playerid][LineUP] = 0;
DuelerID[playerid] = NONE;
DuelTotalEnemy[playerid] = 0;
DuelTotalTeammate[playerid] = 0;
return 1;
}