Quote:
Originally Posted by Windows32
pawn Код:
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]); return 1; }
Try this.
|
What did you do except taking out the SetPlayerSkin? Lol?
EDIT: BTW Simon, when posting PAWN code it is better to use [PAWN][//Pawn](Remove one of the /).