08.10.2012, 22:44
Well creat your own stock function
Like ConverWeaponID
which then you have to Do it like this for example:
Do that for the rest of the ID'S,
The use of it it's simple lets say you need gun ID 30 converted I to name so you do
The code can be shortened or placed in switch(), but this is 1 way of doing it.
EDIT
Use the post bellows method as it saves time/lines.
Forgot about that function
Like ConverWeaponID
which then you have to Do it like this for example:
pawn Код:
Stock ConvertWeaponID(ID)
{
If(ID == 24)
{
new Str[10] = "Deagle";
return Str;
}
}
The use of it it's simple lets say you need gun ID 30 converted I to name so you do
Код:
new WeaponNameStr[10] = ConvertWeaponID(30);
EDIT
Use the post bellows method as it saves time/lines.
Forgot about that function