Textdraw rows
#5

Well I did a little code and that's the problem why I'm asking cuz I can't figure out on my own, I tried on really simple way and it shows only one 1 weapon even I'm holding three of them so yeah what I want to do is, it will show me every weapon I have, and it should display in lines like:

Ak47
Eagle
Colt
Whatever

Code I tried ofc displays me only one weapon cuz I don't know how I can display this thing in textdraws it's much harder than SendClientMessage ^^

pawn Code:
CMD:frisk(playerid,params[])
{
    new Player_Weapons[13];
    new Player_Ammos[13];
    new i;

    for(i = 1;i <= 12;i++)
    {
        GetPlayerWeaponData(playerid,i,Player_Weapons[i],Player_Ammos[i]);
        if(Player_Weapons[i] != 0)
        {
            new weaponName[256],string[256];
            GetWeaponName(Player_Weapons[i],weaponName,255);
            format(string,255,"Weapon Name: %s | Weapon Ammo's: %d.",weaponName,Player_Ammos[i]);
            //SendClientMessage(playerid,0xFFFFFFAA,string);
            TextDrawSetString(Weapons, string);
            TextDrawShowForPlayer(playerid, Weapons);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Textdraw rows - by Lajko1 - 10.07.2015, 13:25
Re: Textdraw rows - by woot - 10.07.2015, 13:26
Re: Textdraw rows - by Lajko1 - 10.07.2015, 13:58
Re: Textdraw rows - by woot - 10.07.2015, 17:09
Re: Textdraw rows - by Lajko1 - 10.07.2015, 17:26
Re: Textdraw rows - by woot - 10.07.2015, 17:32
Re: Textdraw rows - by Lajko1 - 10.07.2015, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)