Is there anything wrong with this?
#2

WTF ? I'm tested the function, i'ts work fine o.O

Are you sure that not inserted a invalid weapon id in the parameter "weaponid" of the function ?

See :
pawn Код:
stock returnWeaponName(weaponid)
{
    new szGunName[32];
    GetWeaponName(weaponid, szGunName, sizeof(szGunName));

    return szGunName;
}

public OnGameModeInit()
{
   
    printf("%s", returnWeaponName(24));
   
    return 1;
}
output :
Quote:

[01:33:38] Desert Eagle

i hope that helped you
Reply


Messages In This Thread
Is there anything wrong with this? - by MattSlater - 28.12.2012, 02:00
Re: Is there anything wrong with this? - by Dragonborn - 28.12.2012, 02:16
Re: Is there anything wrong with this? - by [HiC]TheKiller - 28.12.2012, 02:16

Forum Jump:


Users browsing this thread: 1 Guest(s)