Very strange dialog problem
#3

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
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).
So what should I do about it?

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 
03i++)
    {
        
DuelInfo[playerid][Weapon][i] = 0;
    }
    for(new 
04i++)
    {
        
DuelerID[DuelInfo[playerid][Team][i]] = NONE;
        
DuelInfo[playerid][Team][i] = NONE;
        
DuelInfo[playerid][StatusTeam][i] = 0;
    }
    for(new 
04i++)
    {
        
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;

Reply


Messages In This Thread
Very strange dialog problem - by solstice_ - 28.10.2018, 01:45
Re: Very strange dialog problem - by Calisthenics - 28.10.2018, 07:08
Re: Very strange dialog problem - by solstice_ - 28.10.2018, 13:34
Re: Very strange dialog problem - by v1k1nG - 28.10.2018, 13:55
Re: Very strange dialog problem - by solstice_ - 28.10.2018, 13:57
Re: Very strange dialog problem - by v1k1nG - 28.10.2018, 14:01
Re: Very strange dialog problem - by solstice_ - 28.10.2018, 14:03
Re: Very strange dialog problem - by Calisthenics - 28.10.2018, 14:19
Re: Very strange dialog problem - by solstice_ - 28.10.2018, 14:21
Re: Very strange dialog problem - by d3Pedro - 29.10.2018, 04:13

Forum Jump:


Users browsing this thread: 8 Guest(s)