Getting gun name of issuerid and playerid OnPlayerTakeDamage
#4

'format' was placed AFTER 'TextDrawSetString'.
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
        GetWeaponName(weaponid, Weap, 34);
    format(astring, 256, "%s", Weap);
    TextDrawSetString(Textdraw5[issuerid], astring);
        TextDrawShowForPlayer(issuerid, Textdraw5[issuerid]);
        /* issuerid gun */
You used 'Textdraw11[issuerid]' in your TextDrawSetString instead of 'Textdraw11[playerid]'.
pawn Код:
format(bstring, 256, "%s", Weap);
        TextDrawSetString(Textdraw11[playerid], bstring);
        TextDrawShowForPlayer(playerid, Textdraw11[playerid]);
EDIT: And the additional information provided by Pottus.
Reply


Messages In This Thread
Getting gun name of issuerid and playerid OnPlayerTakeDamage - by GwENiko - 10.10.2014, 18:13
Re: Getting gun name of issuerid and playerid OnPlayerTakeDamage - by GwENiko - 11.10.2014, 04:37
Re: Getting gun name of issuerid and playerid OnPlayerTakeDamage - by Pottus - 11.10.2014, 04:53
Re: Getting gun name of issuerid and playerid OnPlayerTakeDamage - by Threshold - 11.10.2014, 04:55
Re: Getting gun name of issuerid and playerid OnPlayerTakeDamage - by GwENiko - 11.10.2014, 05:38

Forum Jump:


Users browsing this thread: 1 Guest(s)