Saving skin on variable
#2

At the third quote,you already declared skin as an variable,so you do not need 'new' infront of it.
You actually don't need that 'skin' variable at all,you're already using PlayerSkin[playerid];
So as 'PlayerInfo[playerid][pSkin]' and 'PlayerSkin[playerid]' are two different variables,you can use it like this:
pawn Код:
PlayerSkin[playerid]=GetPlayerSkin(playerid);//Setting the first skin before duty to that var
//Going on duty-
SetPlayerSkin(playerid, 255);
PlayerInfo[playerid][pSkin] = 255;
//When getting the skin before duty:
SetPlayerSkin(playerid, PlayerSkin[playerid]);
PlayerInfo[playerid][pSkin] = PlayerSkin[playerid];
Reply


Messages In This Thread
Saving skin on variable - by iLegend5 - 09.12.2013, 16:34
Re: Saving skin on variable - by Tagathron - 09.12.2013, 17:50
Re: Saving skin on variable - by PT - 09.12.2013, 18:19
Re: Saving skin on variable - by iLegend5 - 09.12.2013, 19:34
Re : Saving skin on variable - by FilesMAker - 09.12.2013, 19:55

Forum Jump:


Users browsing this thread: 3 Guest(s)