Not spawning with players Skin ID
#1

I have a problem with the skins, it doesnt seem to be spawning the player correctly with the Skin ID below.

Do I HAVE to create entries for all the different classes in the file before hand? Or can I just select them as I have below?

I don't have any entries at all using AddPlayerClass

Код:
stock LoadStats(playerid)
{
    new pName[24],Query[80];
    GetPlayerName(playerid,pName,24);
    format(Query,sizeof(Query), "SELECT * FROM `Users` WHERE `Username` = '%s';", pName);
    mysql_query(Query);
    mysql_store_result();
    mysql_fetch_row_format(Query, "|");
    sscanf(Query, "e<p<|>s[24]s[23]ddddfffdddd>", PInfo[playerid]);
    mysql_free_result();
    GivePlayerMoney(playerid,PInfo[playerid][Money]);
    SetSpawnInfo(playerid, 0, PInfo[playerid][SkinID], PInfo[playerid][PosX], PInfo[playerid][PosY], PInfo[playerid][PosZ], 10, 0,0,0,0,0,0);
    SpawnPlayer(playerid);
    SetPlayerScore(playerid, PInfo[playerid][Level]);
    SetPlayerSkin(playerid, PInfo[playerid][SkinID]);
    return 1;
}
Reply


Messages In This Thread
Not spawning with players Skin ID - by simon92922 - 09.06.2012, 22:22
Re: Not spawning with players Skin ID - by JhnzRep - 09.06.2012, 22:23
Re: Not spawning with players Skin ID - by Elysian` - 09.06.2012, 22:27
Re: Not spawning with players Skin ID - by JhnzRep - 09.06.2012, 22:28
Re: Not spawning with players Skin ID - by simon92922 - 09.06.2012, 22:38
Re: Not spawning with players Skin ID - by JhnzRep - 09.06.2012, 22:42
Re: Not spawning with players Skin ID - by simon92922 - 09.06.2012, 22:45
Re: Not spawning with players Skin ID - by JhnzRep - 09.06.2012, 22:50
Re: Not spawning with players Skin ID - by Kitten - 09.06.2012, 22:51
Re: Not spawning with players Skin ID - by simon92922 - 09.06.2012, 23:08

Forum Jump:


Users browsing this thread: 2 Guest(s)