saveskin problems
#1

I've tried to save the player skin after player dies. So I've added these codes:
PHP код:
SetPlayerSkin(playeridpSkin); 
at on player spawn
PHP код:
new INI:File INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Skin",GetPlayerSkin(playerid));
INI_Close(File); 
on player disconnect and on player death.
** As you already can see I'm using yini to save player data.

And for some weird reasons I'm getting skinid 7 everytime player spawns.
Reply
#2

First and before you do anything, each player on the server would have a different skin, so, make an array instead "pSkin[MAX_PLAYERS]", to save a player's skin inside a varial, use "pSkin[playerid] = GetPlayerSkin(playerid)"
Reply
#3

Quote:
Originally Posted by Eoussama
Посмотреть сообщение
First and before you do anything, each player on the server would have a different skin, so, make an array instead "pSkin[MAX_PLAYERS]", to save a player's skin inside a varial, use "pSkin[playerid] = GetPlayerSkin(playerid)"
I really don't get you man.. btw I've no function with pSkin[MAX_PLAYERS]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)