SA-MP Forums Archive
Error with skins [ GRP ] - 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: Error with skins [ GRP ] (/showthread.php?tid=489058)



Error with skins [ GRP ] - bogushas - 20.01.2014

Hello guy's!

I found error on my script and i don't know how to fix it, no errors or anything..

Setting the skin

Код:
					if(playerDB[playerid][plead] == 1) return SetPlayerSkin(playerid, 288); playerDB[playerid][uniforma] = 288; playerDB[playerid][uniformd] = true;
					if(playerDB[playerid][rangas] == 0 ) return SetPlayerSkin(playerid, 280); playerDB[playerid][uniforma] = 280; playerDB[playerid][uniformd] = true;
					if(playerDB[playerid][rangas] == 1 ) return SetPlayerSkin(playerid, 281); playerDB[playerid][uniforma] = 281; playerDB[playerid][uniformd] = true;
					if(playerDB[playerid][rangas] == 2 ) return SetPlayerSkin(playerid, 266); playerDB[playerid][uniforma] = 266; playerDB[playerid][uniformd] = true;
Saving:
dini_BoolSet(file,"Uniformd",playerDB[playerid][uniformd]);

Loading:
if (dini_Int(file,"Uniformd")) playerDB[playerid][uniformd] = true;