Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: Milos on Apr 01, 2016, 09:58 PM

Title: GetSkinName
Post by: Milos on Apr 01, 2016, 09:58 PM
Is there any way to get the name of a skin mod using GetSkinName function?
e.g. I use some skins mods as:
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fs27.postimg.org%2Ftjxe257ub%2FSem_t_tulo.png&hash=4fe42df1a1f7f492996213eed4f71721721f2ef1)

But when I use GetSkinName in some skin mod returns me a null string: (null : 0x(nil))
But along with the skins have the name in XML:

<?xml version="1.0" encoding="ASCII"?>
<skin>
 <basic>
  <name>Amanda</name>
  <animgroup>busywoman</animgroup>
  <animfile>null</animfile>
 </basic>
</skin>
My solution was to create my own function. But there how to use XML to get this information?
Title: Re: GetSkinName
Post by: MacTavish on Apr 02, 2016, 01:11 AM
can you please just search before posting? here is a snippet (http://forum.vc-mp.org/?topic=2385.msg17633#msg17633) that could solve your problem and a bug, just replace Custom Skin names with your skin names and copy paste code and use this function instead of default GetSkinName
Title: Re: GetSkinName
Post by: Milos on Apr 02, 2016, 01:17 AM
I've done a function that takes the names. What I asked was that you have to get these names from within the XML.
Title: Re: GetSkinName
Post by: MacTavish on Apr 02, 2016, 01:18 AM
you cant get names from xml you have to implement them in your script
Title: Re: GetSkinName
Post by: KAKAN on Apr 02, 2016, 01:48 PM
I can't understand what's so hard in copy pasting a snippet and then copy-pasting a string from a XML file or a .7z