Skin error?
#1

First off, my gamemode code: http://pastebin.com/RbmZnu0r

Okay, so, I just added the registration/login part. Now, when I login, (already registered user) I get put in the right spot, however, when I do spawn, my skin is the default CJ skin. In my INI file, I have
Код:
skin = 164
and when I leave the game, it saves my skin from
pawn Код:
pInfo[playerid][Skin]
as 164. Also, this part of my code, from line 648-650 I have this code as a test
pawn Код:
new test[128];
format(test, sizeof(test), "Your Skin is: %i", pInfo[playerid][Skin]);
SendClientMessage(playerid, COLOR_LIMEGREEN, test);
Which simply displays the Skin value which should have been applied on lines 636-638 as follows
pawn Код:
SetSpawnInfo(playerid, 0, pInfo[playerid][Skin], pInfo[playerid][LastX], pInfo[playerid][LastY], pInfo[playerid][LastZ], pInfo[playerid][LastA], 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
GivePlayerMoney(playerid, pInfo[playerid][Money]);
So apparently, on line 648, pInfo[playerid][Skin] is equal to 164 (from .ini)
Yet, on line 636, pInfo[playerid][Skin] is equal to 0 (from narnia?)

Anyone see why this is happening?
Reply


Messages In This Thread
Skin error? - by Nathan_Taylor - 05.03.2013, 15:43
Re: Skin error? - by Nathan_Taylor - 05.03.2013, 20:03
Re: Skin error? - by Calabresi - 05.03.2013, 20:22
Re: Skin error? - by Nathan_Taylor - 05.03.2013, 20:31
Re: Skin error? - by Calabresi - 05.03.2013, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)