SA-MP Forums Archive
mysql help doesnt set players skin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: mysql help doesnt set players skin (/showthread.php?tid=657936)



mysql help doesnt set players skin - Stormalle - 18.08.2018

Hi, i don't know why, mysql does save and load players skin but when i spawn i still get skin: 0

Код HTML:
SetSpawnInfo(playerid, 0, zInfo[playerid][pSkin], zInfo[playerid][posx], zInfo[playerid][posy], zInfo[playerid][posz], zInfo[playerid][posangle], 0, 0, 0, 0, 0, 0);
	            SpawnPlayer(playerid);
Код HTML:
orm_addvar_int(zInfo[ playerid ][ Ormid ], zInfo[ playerid ][ pSkin ], "Skin");
database pic: https://prnt.sc/kk6mzq


Re: mysql help doesnt set players skin - Stormalle - 18.08.2018

help


Re: mysql help doesnt set players skin - Akeem - 18.08.2018

I recommand using SetPlayerSkin after you call Spawn player.

BTW are you getting any errors or warnings while compiling the gamemode or while running the gamemode?


Re: mysql help doesnt set players skin - Stormalle - 18.08.2018

yeah i will try that

no, no errors no warnings


Re: mysql help doesnt set players skin - Stormalle - 18.08.2018

okey, it works now, thanks , i thought the same thing after i posted this