[Ajuda] TextDraw
#1

Bom Galera. Seguinte. Queria que quando um player tomasse um tiro, aparecesse em cima da sua Cabeзa o quanto de HP que ele perdeu com o tiro.

Ex : -10

Ta assim aqui :

pawn Код:
new Text3D:Sangue;
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    if(damagedid != INVALID_PLAYER_ID)
    {
        new String[40];
        format(String, sizeof(String), "~g~-~r~%.0f", amount);
        Sangue = Create3DTextLabel(String, -1, 30.0, 40.0, 50.0, 40.0, 0, 0);
        Attach3DTextLabelToPlayer(Sangue, damagedid, 0.0, 0.0, 0.7);
        SetTimerEx("Retirar3D", 2000, false, "d", damagedid);
    }
    return 1;
}
//------------------------------------------------------------------------------
forward Retirar3D(playerid);
public Retirar3D(playerid)
{
     Delete3DTextLabel(playerid, Sangue);
     return 1;
}
Da esses Warning :

pawn Код:
C:\Users\Lucas\Desktop\Servidor\gamemodes\DM.pwn(38) : warning 213: tag mismatch
C:\Users\Lucas\Desktop\Servidor\gamemodes\DM.pwn(38) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Linha 38 :

pawn Код:
Delete3DTextLabel(playerid, Sangue);
Como fica In Game ( N era pra tar assim :\ )







Alguem me ajuda ai, fala o que ta errado. PF

+Rep se for o caso.
Reply


Messages In This Thread
TextDraw - by Lucas-Fc - 04.10.2012, 00:34
Re: TextDraw - by Lucas-Fc - 04.10.2012, 00:40
Re: TextDraw - by Lucas-Fc - 04.10.2012, 00:48
Re: TextDraw - by FenixBorn - 04.10.2012, 02:00
Re: TextDraw - by ViniBorn - 04.10.2012, 02:04
Re: TextDraw - by Jason` - 04.10.2012, 03:19
Re: TextDraw - by Lucas-Fc - 04.10.2012, 11:58
Re: TextDraw - by Lucas-Fc - 04.10.2012, 12:30
Re: TextDraw - by Lucas-Fc - 04.10.2012, 12:42
Re: TextDraw - by Waldrey - 04.10.2012, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)