27.11.2010, 01:54
The line I'm getting the warning is on the sscanf line:
And here is the enum:
pawn Код:
stock LoadPInfo(playerid)
{
new Query[600];
if(mysql_fetch_row(Query))
{
sscanf(Query, sizeof(Query), "e<p<|>s[24]s[24]dddds[24]ddddddddddddd>", PVar[playerid]);
mysql_free_result();
}
if(PVar[playerid][pHasSkin] == 1)//GetPVarInt(playerid, "HasSkin") == 1)
{
SpawnPlayer(playerid);
SetPlayerSkin(playerid, PVar[playerid][pSkinID]);//GetPVarInt(playerid, "SkinID"));
}
return 1;
}
pawn Код:
enum _PSTATS
{
pLayaName[24],
pPassword[24],
pKills,
pDeaths,
pScore,
pMoney,
pIP[24],
pLevel,
pBankMoney,
pDrunkLvl,
pHasObj,
pObjID,
pBoneID,
pFightStyle,
pBoost,
pVChange,
pGamePlay,
pLanguage,
pHasSkin,
pSkinID,
}
new PVar[MAX_PLAYERS][_PSTATS];
Код:
error 035: argument type mismatch (argument 2)