Quote:
Originally Posted by Lewwy
Yes I'm using 2.0. (Plugin, obviously)
I now have this:
pawn Code:
new username, password, ip, skin, factionid;
sscanf(line, "p<|>s[24]s[15]s[50]dd", username, password, ip, skin, factionid);
SetPVarInt(playerid, "Skin", skin);
And yet it is still setting me to CJ, in the table this is what is there:
|
Heres another thing...I'm guessing this sscanf line is in OnPlayerLogin or something?
Try adding something like this under OnPlayerSpawn.
pawn Code:
GetPVarInt(playerid, "Skin");
SetPlayerSkin(playerid, Skin);
if that doesn't work, try assigning a var to GetPVarInt (Sounds stupid I know).
I.e
new SetSkin = GetPVarInt(playerid, "Skin");
SetPlayerSkin(playerid, SetSkin);