how save weapon with Pvar?
#1

hello i have been trying to script a weapon saving with Pvar like for example i did this little already but dont work
and aswell dUerINT


loading Login
PHP код:
            if(udb_CheckLogin(PlayerName(playerid),inputtext))
            {
                
SetPVarInt(playerid"AdminLevel"dUserINT(PlayerName(playerid)).("AdminLevel"));
                
SetPVarInt(playerid"Banned"dUserINT(PlayerName(playerid)).("Banned"));
                
SetPVarInt(playerid"BankCash"dUserINT(PlayerName(playerid)).("BankCash"));
                
SetPVarInt(playerid"Cash"dUserINT(PlayerName(playerid)).("Cash"));
                
SetPVarInt(playerid"WantedLevel"dUserINT(PlayerName(playerid)).("WantedLevel"));
                
SetPVarInt(playerid"HasPack"dUserINT(PlayerName(playerid)).("HasPack"));
                
SetPVarInt(playerid"Warnings"dUserINT(PlayerName(playerid)).("Warnings"));
                
SetPVarInt(playerid"PackCash"dUserINT(PlayerName(playerid)).("PackCash"));
                
SetPVarInt(playerid"ArmyPermission"dUserINT(PlayerName(playerid)).("ArmyPermission"));
                
SetPVarInt(playerid"PackPipe"dUserINT(PlayerName(playerid)).("PackPipe"));
                
SetPVarInt(playerid"PackWallet"dUserINT(PlayerName(playerid)).("PackWallet"));
                
SetPVarInt(playerid"PackCondom"dUserINT(PlayerName(playerid)).("PackCondom"));
                
SetPVarInt(playerid"PackExp"dUserINT(PlayerName(playerid)).("PackExp"));
                
SetPVarInt(playerid"PackSnack"dUserINT(PlayerName(playerid)).("PackSnack"));
                
SetPVarInt(playerid"PackPot"dUserINT(PlayerName(playerid)).("PackPot"));
                
SetPVarInt(playerid"JailTime"dUserINT(PlayerName(playerid)).("JailTime"));
                
SetPVarInt(playerid"RobSkill"dUserINT(PlayerName(playerid)).("RobSkill"));
                
SetPVarInt(playerid"Elite"dUserINT(PlayerName(playerid)).("Elite"));
                
SetPVarInt(playerid"TerrorSkill"dUserINT(PlayerName(playerid)).("TerrorSkill"));
                
SetPVarInt(playerid"Skin"dUserINT(PlayerName(playerid)).("Skin"));
                
SetPVarInt(playerid"Weapon"dUserINT(PlayerName(playerid)).("Weapon"));
                
/*SetPVarInt(playerid, "HouseOnePerson", dUserINT(PlayerName(playerid)).("HouseOnePerson"));
                SetPVarInt(palyerid, "HouseTwoPerson", dUserINT(PlayerName(playerid)).("HouseTwoPerson"));
                SetPVarInt(playerid, "HouseThreePerson", dUserINT(PlayerName(playerid)).("HouseThreePerson"));
                SetPVarInt(playerid, "HouseFourPerson", dUserINT(PlayerName(playerid)).("HouseFourPerson"));
                SetPVarInt(playerid, "HouseFivePerson", dUserINT(PlayerName(playerid)).("HouseFivePerson"));
                SetPVarInt(playerid, "HouseSixPerson", dUserINT(PlayerName(playerid))."HouseSixPerson"));*/
                
SetPlayerScore(playeriddUserINT(PlayerName(playerid)).("Score"));
                new 
pIP[16]; GetPlayerIp(playeridpIP16);
                
dUserSet(PlayerName(playerid)).("IP"pIP);
                
PLAYERLIST_authed[playerid] = true;
                
SpawnPlayer(playerid);
                return 
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_RWHITE"You are now logged in. Your stats will save when you leave the server.");
            }
            
LogPlayer(playerid);
        }
        return 
1
\
the problem is i dont know how to script the weapon saving anyone please help

and here is the register

PHP код:
            if(udb_Create(PlayerName(playerid),inputtext))
            {
                
SendClientMessage(playeridCOLOR_LIGHTBLUE"You have registerd. Your stats will save when you leave the game but incase do /savestarts.");
                
LogPlayer(playerid);
                
PLAYERLIST_authed[playerid] = true;
                
dUserSetINT(PlayerName(playerid)).("Score"0);
                
dUserSetINT(PlayerName(playerid)).("Cash"1500);
                
dUserSetINT(PlayerName(playerid)).("Skin"230);
                
dUserSetINT(PlayerName(playerid)).("Weapon"24);
                
dUserSetINT(PlayerName(playerid)).("BankCash"5000);
                
dUserSetINT(PlayerName(playerid)).("AdminLevel"0);
                
dUserSetINT(PlayerName(playerid)).("Banned"0);
                
dUserSetINT(PlayerName(playerid)).("WantedLevel"0);
                
dUserSetINT(PlayerName(playerid)).("Warnings"0);
                
dUserSetINT(PlayerName(playerid)).("PackCash"0);
                
dUserSetINT(PlayerName(playerid)).("ArmyPermission"0);
                
dUserSetINT(PlayerName(playerid)).("PackPot"0);
                
dUserSetINT(PlayerName(playerid)).("PackPipe"0);
                
dUserSetINT(PlayerName(playerid)).("PackCondom"0);
                
dUserSetINT(PlayerName(playerid)).("PackSnack"0);
                
dUserSetINT(PlayerName(playerid)).("PackWallet"0);
                
dUserSetINT(PlayerName(playerid)).("PackExp"0);
                
dUserSetINT(PlayerName(playerid)).("HasPack"0);
                
dUserSetINT(PlayerName(playerid)).("RobSkill"0);
                
dUserSetINT(PlayerName(playerid)).("TerrorSkill"0);
                new 
pIP[16]; GetPlayerIp(playeridpIP16);
                
dUserSet(PlayerName(playerid)).("IP"pIP);
            }
            return 
true;
        }
        return 
1
Reply


Messages In This Thread
how save weapon with Pvar? - by UserName31 - 25.01.2014, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)