Command help
#2

`GunName` is array, not function.

Код:
format(string, sizeof(string), "~g~%s ~w~fight!", GunName[wep_id]);
Place sanity checks before the loop to validate the weaponid otherwise run time error 4. In case you do not know, there is already a function to get the name of weapon: https://sampwiki.blast.hk/wiki/GetWeaponName
Reply


Messages In This Thread
Command help - by SymonClash - 30.01.2019, 08:56
Re: Command help - by Calisthenics - 30.01.2019, 08:59
Re: Command help - by SymonClash - 30.01.2019, 09:05
Re: Command help - by Calisthenics - 30.01.2019, 09:07
Re: Command help - by SymonClash - 30.01.2019, 09:15
Re: Command help - by Calisthenics - 30.01.2019, 09:26
Re: Command help - by SymonClash - 30.01.2019, 10:36
Re: Command help - by Calisthenics - 30.01.2019, 10:49
Re: Command help - by SymonClash - 30.01.2019, 10:58

Forum Jump:


Users browsing this thread: 3 Guest(s)