SA-MP Forums Archive
New skin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: New skin (/showthread.php?tid=651091)



New skin - Oficer - 13.03.2018

Hi, how I can save a new skin?
for example:
PHP Code:
AddCharModel(020014"ballas3.dff""ballas3.txd"); 
I save in database MySQL Blueg r41 and I have a problem, because when I use function GetPlayerSkin(playerid), script get id "0". How I can save id new skin - "20014"?


Re: New skin - Scr3w - 13.03.2018

Don't use GetPlayerSkin, set and get the skin directly from de variable, example:

PlayerInfo[playerid][pSkin] = skinid;

SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);

And only use SetPlayerSkin to change the skin, its easy.


Re: New skin - Oficer - 13.03.2018

Thanks Bro
Greetings from Poland!


Re: New skin - ISmokezU - 13.03.2018

Great to see a workaround. The function however, to return a custom skin id is GetPlayerCustomSkin();


Re: New skin - Eatmysmoke - 13.03.2018

Or just use this include
https://sampforum.blast.hk/showthread.php?tid=647915