[HELP] GetPlayerWeapon with a Command!
#7

Quote:
Originally Posted by TheNooB
Weapon Name, Weapon ID, Weapon Ammo

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/silahal", cmdtext, true, 10) == 0)
    {
    new weaponid = GetPlayerWeapon(playerid);
    new WeaponName[128];
    new string[128];
    GetWeaponName(weaponid, WeaponName, sizeof WeaponName);

    format(string, sizeof string, "Current Weapon: %s(Weapon ID: %d) Ammo: %d", WeaponName, GetPlayerWeapon(playerid), GetPlayerAmmo(playerid));
    SendClientMessage(playerid,0xF60000AA, string);
    return 1;
    }
    return 0;
}
Why is WeaponName such a big array?
Reply


Messages In This Thread
[HELP] GetPlayerWeapon with a Command! - by Lynax - 01.11.2009, 12:47
Re: [HELP] GetPlayerWeapon with a Command! - by SpiderPork - 01.11.2009, 14:01
Re: [HELP] GetPlayerWeapon with a Command! - by introzen - 01.11.2009, 14:09
Re: [HELP] GetPlayerWeapon with a Command! - by Lynax - 01.11.2009, 16:04
Re: [HELP] GetPlayerWeapon with a Command! - by Synkro93 - 01.11.2009, 16:08
Re: [HELP] GetPlayerWeapon with a Command! - by TheNooB - 01.11.2009, 16:18
Re: [HELP] GetPlayerWeapon with a Command! - by MenaceX^ - 01.11.2009, 16:20
Re: [HELP] GetPlayerWeapon with a Command! - by TheNooB - 01.11.2009, 16:30
Re: [HELP] GetPlayerWeapon with a Command! - by Dresden - 01.11.2009, 16:51

Forum Jump:


Users browsing this thread: 2 Guest(s)