GetPlayerSkin[Help] Anyone?[SOLVED]
#1

How do i use the
Код:
GetPlayerSkin(playerid);
to safe skins so when they do a command, they go back to the original skin, i did this
Код:
SetPlayerSkin(playerid,GetPlayerSkin(playerid) );
But the thing is it compiles fine, but it don't work.
Reply
#2

Are you serious?
Reply
#3

new skin[MAX_PLAYERS];

skin = GetPlayerSkin(playerid);

SetPlayerSkin(playerid, skin);
Reply
#4

Yea you must store that value
Reply
#5

Quote:
Originally Posted by Assyria
new skin[MAX_PLAYERS];

skin = GetPlayerSkin(playerid);

SetPlayerSkin(playerid, skin);
Actulley you did that wrong

[code=Correction]
new skin[MAX_PLAYERS];
skin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, skin[playerid]);[/code]
Reply
#6

I thought that is what i had to do.
Reply
#7

If you want to store your old skin, use this:

pawn Код:
new oldskin[MAX_PLAYERS];

oldskin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, oldskin[playerid]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)