10.06.2011, 01:28
Hello, I have made a gamemode, it's basically completed but I have this bug. When the player logins, his data is supposed to load off a file and send a message saying his stastistics.
Where 73 is totally random value that is irrevelant.
Any help? Thanks !
pawn Код:
// We set the PVar.
SetPVarInt(playerid, "Hunts", dini_Int(szRoot, "Hunts"));
SetPVarInt(playerid, "Hunted", dini_Int(szRoot, "Hunted"));
SetPVarInt(playerid, "Admin", dini_Int(szRoot, "Admin"));
SetPVarInt(playerid, "Money", dini_Int(szRoot, "Money"));
SetPVarInt(playerid, "Score", dini_Int(szRoot, "Score"));
SetPVarInt(playerid, "Skin", dini_Int(szRoot, "Skin"));
SetPVarInt(playerid, "Premium", dini_Int(szRoot, "Premium"));
SetPVarInt(playerid, "Muted", dini_Int(szRoot, "Muted"));
SetPVarInt(playerid, "Locked", dini_Int(szRoot, "Locked"));
pawn Код:
// But when it shows the message:
Welcome, Admantis, your admin level is 0, your money is $73, and your score is 0.
Any help? Thanks !