Errors in crashdetect "Array index out of bounds"
#3

PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponid)
{
PlayerPlaySound(issuerid178020.00.00.0);
new 
Float:Vida;
GetPlayerHealth(playeridVida);
//==damage
#if defined SHOWN_ON_SCOREBOARD
if(issuerid != INVALID_PLAYER_ID)
{
// code he
        
totalDmg[issuerid] += amount;
        
SetPlayerScore(issueridfloatround(totalDmg[issuerid]));
        
#endif
        
currentHpLoss[0][issuerid][playerid] += amount;
        
currentHpLoss[1][playerid][issuerid] += amount;
        new
         
nick[MAX_PLAYER_NAME],
         
buffer[128];
        
GetPlayerName(playeridnickMAX_PLAYER_NAME);
        
format(buffer128"~g~~h~~h~%s~n~~g~~h~~h~%i (%s)"nickfloatround(currentHpLoss[0][issuerid][playerid]), weaponName[weaponid]);
        
TextDrawSetString(txd[0][issuerid], buffer);
        
GetPlayerName(issueridnickMAX_PLAYER_NAME);
        
format(buffer128"~r~~h~%s~n~~r~~h~-%i (%s)"nickfloatround(currentHpLoss[1][playerid][issuerid]), weaponName[weaponid]);
        
TextDrawSetString(txd[1][playerid], buffer);
        
txdAlpha[0][issuerid] = 0xFF;
        
txdAlpha[1][playerid] = 0xFF;
        return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)