05.03.2013, 15:43
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
and when I leave the game, it saves my skin from
as 164. Also, this part of my code, from line 648-650 I have this code as a test
Which simply displays the Skin value which should have been applied on lines 636-638 as follows
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?
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
pawn Код:
pInfo[playerid][Skin]
pawn Код:
new test[128];
format(test, sizeof(test), "Your Skin is: %i", pInfo[playerid][Skin]);
SendClientMessage(playerid, COLOR_LIMEGREEN, test);
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]);
Yet, on line 636, pInfo[playerid][Skin] is equal to 0 (from narnia?)
Anyone see why this is happening?