New skin
#1

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"?
Reply
#2

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.
Reply
#3

Thanks Bro
Greetings from Poland!
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)