Setting a name for an ID? +rep
#2

Well creat your own stock 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;
     }
}
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
Код:
new WeaponNameStr[10] = ConvertWeaponID(30);
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
Reply


Messages In This Thread
Setting a name for an ID? +rep - by RLGaming - 08.10.2012, 22:29
Re: Setting a name for an ID? +rep - by park4bmx - 08.10.2012, 22:44
Re: Setting a name for an ID? +rep - by ReneG - 08.10.2012, 22:44
Re: Setting a name for an ID? +rep - by RLGaming - 08.10.2012, 23:30
Re: Setting a name for an ID? +rep - by vIBIENNYx - 09.10.2012, 03:41
Re: Setting a name for an ID? +rep - by zSuYaNw - 09.10.2012, 06:33
Re: Setting a name for an ID? +rep - by RLGaming - 09.10.2012, 06:57
Re: Setting a name for an ID? +rep - by park4bmx - 09.10.2012, 09:05
Re: Setting a name for an ID? +rep - by RLGaming - 09.10.2012, 15:04
Re: Setting a name for an ID? +rep - by park4bmx - 09.10.2012, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)