04.01.2015, 20:49
Hi all.
I wonder why this code is not working.
On OnPlayerDisconnect it saves the skin:
And in OnPlayerSpawn it loads the skin:
When I spawn the skin is ID 0 (CJ)... What's wrong? Thanks.
(IN the .DB file is all correct)
I wonder why this code is not working.
On OnPlayerDisconnect it saves the skin:
pawn Код:
//OnPlayerDisconnect
new skin;
skin = GetPlayerSkin(playerid);
PlayerInfo[playerid][pModel] = skin;
//OnPlayerSave
SQL_UpdateInt(index, "Model",PlayerInfo[playerid][pModel]);
pawn Код:
SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
(IN the .DB file is all correct)