3DTEXTLABEL help
#7

Quote:
Originally Posted by Audiophr3ak
Посмотреть сообщение
PHP код:
public OneSecondPublic()
{
    for (new 
iMAX_PLAYERSi++)
    {
        new 
FloatHealthFloatArmourArmourMathFlawHealthMathFlaw;
        
GetPlayerHealth(iHealth);
        
GetPlayerArmour(iArmour);
        
HealthMathFlaw floatround(Healthfloatround_ceil);
        
ArmourMathFlaw floatround(Armourfloatround_ceil);
        
MaskedName[i] = Player[i][MaskRandom];
        
format(sendernameMAX_PLAYER_NAME"Mask[%d]\nHP:%d AR:%d",MaskedName[playerid],HealthMathFlaw,ArmourMathFlaw);
        
Update3DTextLabelText(Mask[i], 0xFFFFFFFFsendername);
    }
    return 
1;

Wrong...
pawn Код:
public OnGameModeInit()
{
    SetTimer("OneSecondPublic", 1000, true);
    return 1;
}

forward OneSecondPublic();
public OneSecondPublic()
{
    for (new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new Float: Health, Float: Armour, ArmourMathFlaw, HealthMathFlaw;
            GetPlayerHealth(i, Health);
            GetPlayerArmour(i, Armour);
            HealthMathFlaw = floatround(Health, floatround_ceil);
            ArmourMathFlaw = floatround(Armour, floatround_ceil);
            MaskedName[i] = Player[i][MaskRandom];
            format(sendername, MAX_PLAYER_NAME, "Mask[%d]\nHP:%d AR:%d",MaskedName[i],HealthMathFlaw,ArmourMathFlaw);
            Update3DTextLabelText(Mask[i], 0xFFFFFFFF, sendername);
        }
    }
    return 1;
}
Reply


Messages In This Thread
3DTEXTLABEL help - by UnAngel - 10.09.2012, 18:47
Re: 3DTEXTLABEL help - by Roko_foko - 10.09.2012, 18:54
Re: 3DTEXTLABEL help - by UnAngel - 11.09.2012, 04:05
Re: 3DTEXTLABEL help - by clarencecuzz - 11.09.2012, 06:34
Re: 3DTEXTLABEL help - by mamorunl - 11.09.2012, 06:46
Re: 3DTEXTLABEL help - by Audiophr3ak - 11.09.2012, 07:19
Re: 3DTEXTLABEL help - by clarencecuzz - 11.09.2012, 07:33
Re: 3DTEXTLABEL help - by Audiophr3ak - 11.09.2012, 07:39
Re: 3DTEXTLABEL help - by mamorunl - 11.09.2012, 07:40
Re: 3DTEXTLABEL help - by Audiophr3ak - 11.09.2012, 07:42

Forum Jump:


Users browsing this thread: 1 Guest(s)