Skin doesn't load
#1

Howdy, I made a nice saving/loading system a while ago, and apparently my saving works better then loading. The systems are made in mysql.

The skin saves into my database, but the skin doesn't load. It always sets skin to Cjs skin. Heres my loading code:

pawn Код:
if(mysql_fetch_row(szQuery)) { sscanf(str, "e<p<|>s[24]s[64]s[16]fffdddddd>", User[playerid]); }
                format(szQuery, sizeof(szQuery), "UPDATE "SQL_ACCOUNT_TABLE" SET IP = '%s' WHERE Username = '%s'", pIP(playerid), pName(playerid));
                mysql_query(szQuery);
That loads it all, and this is the enums, incase you want to base it off:

pawn Код:
enum pInfo
{
    Username[24],
    Password[64],
    IP[16],
    Float:pX,
    Float:pY,
    Float:pZ,
    Interior,
    VWorld,
    Level,
    Money,
    Skin,
    Gender,
   
   
}

And the spawn code, with setting of the Skin:

pawn Код:
SetSpawnInfo(playerid, 0, User[playerid][Skin], User[playerid][pX], User[playerid][pY], User[playerid][pZ], 0.0, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);

    SetPlayerInterior(playerid, User[playerid][Interior]);
    SetPlayerVirtualWorld(playerid, User[playerid][VWorld]);
    GivePlayerMoney(playerid, User[playerid][Money]);

Thanks in advance for anyone who helps out.
Reply


Messages In This Thread
Skin doesn't load - by Abreezy - 22.12.2011, 01:41
Re: Skin doesn't load - by Tee - 22.12.2011, 01:59
Re: Skin doesn't load - by Abreezy - 22.12.2011, 02:07
Re: Skin doesn't load - by Tee - 22.12.2011, 02:11
Re: Skin doesn't load - by Abreezy - 22.12.2011, 02:16
Re: Skin doesn't load - by Tee - 22.12.2011, 02:19
Re: Skin doesn't load - by Abreezy - 22.12.2011, 02:19
Re: Skin doesn't load - by Tee - 22.12.2011, 02:22
Re: Skin doesn't load - by Abreezy - 22.12.2011, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)