Jump to content
  • 0

Ajutor am o Problema


DarkSmok

Question

Recommended Posts

  • 0
Acum 6 minute, DarkSmok a spus:

un exemplu ce sa bag..

ca sa stiu cum fac ?

lasa #include<systems> unde era. Muta deasupra lui functia CreateVehicleEx sau scoate din systems crearea masinililor si puneo in gm. Mult mai usor decat sa faci alt include etc....

Edit: Sau baga functia CreateVehicleEx in include

Edited by valivaly96
Link to comment
Share on other sites

  • 0
5 minutes ago, valivaly96 said:

lasa #include<systems> unde era. Muta deasupra lui functia CreateVehicleEx sau scoate din systems crearea masinililor si puneo in gm. Mult mai usor decat sa faci alt include etc....

sau asa cum a zis vali e mai usor

Link to comment
Share on other sites

  • 0
6 minutes ago, DarkSmok said:

de la system.inc?

 

te duci in gm si cauti aia stock createvehicleex, si o bagi in include ala systems, apoi stergi #include <systems> de la sfarsitul gm-ului si il adaugi la inceput si ai rezolvat cu tot.

Link to comment
Share on other sites

  • 0
Just now, valivaly96 said:

Muta functia createvehicleEx in include sau 

lasa #include<systems> unde era. Muta deasupra lui functia CreateVehicleEx sau scoate din systems crearea masinililor si puneo in gm. Mult mai usor decat sa faci alt include etc....

image.thumb.png.737ee4ed1c1c6ec1a5ab478f00c8a457.pngasta e functia?

 

Link to comment
Share on other sites

  • 0
2 minutes ago, AlexxAdv said:

Ce linii ai de la 394 pana la 420 in systems.inc?

394 function Update(playerid, type) {
    if(IsPlayerConnected(playerid)) {
        new var[356];
        switch(type) {
            case pCashx: format(var, sizeof(var), "UPDATE `users` SET `Money`='%d' WHERE `ID`='%d'",GetPlayerCash(playerid), PlayerInfo[playerid][pSQLID]);                
            case pRP: format(var, sizeof(var), "UPDATE `users` SET `Respect`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pExp], PlayerInfo[playerid][pSQLID]);                
            case pBank: format(var, sizeof(var), "UPDATE `users` SET `Bank`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pAccount], PlayerInfo[playerid][pSQLID]);                
            case pCarLicTx: format(var, sizeof(var), "UPDATE `users` SET `CarLicT`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pCarLicT], PlayerInfo[playerid][pSQLID]);            
            case pFlyLicTx: format(var, sizeof(var), "UPDATE `users` SET `FlyLicT`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pFlyLicT], PlayerInfo[playerid][pSQLID]);                
            case pBoatLicTx: format(var, sizeof(var), "UPDATE `users` SET `BoatLicT`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pBoatLicT], PlayerInfo[playerid][pSQLID]);                
            case pFishLicTx: format(var, sizeof(var), "UPDATE `users` SET `FishLicT`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pFishLicT], PlayerInfo[playerid][pSQLID]);                
            case pGunLicTx: format(var, sizeof(var), "UPDATE `users` SET `GunLicT`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pGunLicT], PlayerInfo[playerid][pSQLID]);                
            case pRobx: format(var, sizeof(var), "UPDATE `users` SET `Rob`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pRob], PlayerInfo[playerid][pSQLID]);                
            case pFpunishx: format(var, sizeof(var), "UPDATE `users` SET `FPunish`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pFpunish], PlayerInfo[playerid][pSQLID]);                
            case pLawyerx: format(var, sizeof(var), "UPDATE `users` SET `Acceptpoints`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pLawyer], PlayerInfo[playerid][pSQLID]);            
            case pConnectTimex: format(var, sizeof(var), "UPDATE `users` SET `ConnectedTime`='%0.3f' WHERE `ID`='%d'",PlayerInfo[playerid][pConnectTime], PlayerInfo[playerid][pSQLID]);            
            case pTowx: format(var, sizeof(var), "UPDATE `users` SET `Tow`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pTow], PlayerInfo[playerid][pSQLID]);                
            case pPayDayHadx: format(var, sizeof(var), "UPDATE `users` SET `PayDayHad`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pPayDayHad], PlayerInfo[playerid][pSQLID]);            
            case pPayDayx: format(var, sizeof(var), "UPDATE `users` SET `PayDay`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pPayDay], PlayerInfo[playerid][pSQLID]);                
            case pPayCheckx: format(var, sizeof(var), "UPDATE `users` SET `Paycheck`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pPayCheck], PlayerInfo[playerid][pSQLID]);                
            case pHousex: format(var, sizeof(var), "UPDATE `users` SET `House`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pHouse], PlayerInfo[playerid][pSQLID]);                
            case pJailedx: format(var, sizeof(var), "UPDATE `users` SET `Jailed`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pJailed], PlayerInfo[playerid][pSQLID]);                
            case pJailTimex: format(var, sizeof(var), "UPDATE `users` SET `JailTime`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pJailTime], PlayerInfo[playerid][pSQLID]);                
            case pRadiox: format(var, sizeof(var), "UPDATE `users` SET `Radio2`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pMP3], PlayerInfo[playerid][pSQLID]);                
            case pWantedLevelx: format(var, sizeof(var), "UPDATE `users` SET `WantedLevel`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pWantedLevel], PlayerInfo[playerid][pSQLID]);                
            case pPhonex: format(var, sizeof(var), "UPDATE `users` SET `Phone`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pPhone], PlayerInfo[playerid][pSQLID]);                
 420    case pMatsx: format(var, sizeof(var), "UPDATE `users` SET `Materials`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pMats], PlayerInfo[playerid][pSQLID]);                
            case pFishesx: format(var, sizeof(var), "UPDATE `users` SET `Fishes`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pFishes], PlayerInfo[playerid][pSQLID]);                
            case pFishSkillx: format(var, sizeof(var), "UPDATE `users` SET `FishSkill`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pFishSkill], PlayerInfo[playerid][pSQLID]);                
            case pRobSkillx: format(var, sizeof(var), "UPDATE `users` SET `RobSkill`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pRobSkill], PlayerInfo[playerid][pSQLID]);                
            case pReferralx: format(var, sizeof(var), "UPDATE `users` SET `referral`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pReferral], PlayerInfo[playerid][pSQLID]);                
            case pLevelx: format(var, sizeof(var), "UPDATE `users` SET `Level`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pSQLID]);                
            case pReferralPx: format(var, sizeof(var), "UPDATE `users` SET `referralp`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pReferralP], PlayerInfo[playerid][pSQLID]);                
            case pPremiumAccountx: format(var, sizeof(var), "UPDATE `users` SET `Premium`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pPremiumAccount], PlayerInfo[playerid][pSQLID]);                
            case pBizzx: format(var, sizeof(var), "UPDATE `users` SET `Bizz`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pBizz], PlayerInfo[playerid][pSQLID]);                
            case pPnumberx: format(var, sizeof(var), "UPDATE `users` SET `PhoneNr`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pPhone], PlayerInfo[playerid][pSQLID]);                
            case pRegx: format(var, sizeof(var), "UPDATE `users` SET `Registered`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pReg], PlayerInfo[playerid][pSQLID]);                
            case pRegistredDatex: format(var, sizeof(var), "UPDATE `users` SET `RegisterDate`='%s' WHERE `ID`='%d'",PlayerInfo[playerid][pRegistredDate], PlayerInfo[playerid][pSQLID]);                
            case pRentedx: format(var, sizeof(var), "UPDATE `users` SET `Rented`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pRented], PlayerInfo[playerid][pSQLID]);                
            case pCrimesx: format(var, sizeof(var), "UPDATE `users` SET `Crimes`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pCrimes], PlayerInfo[playerid][pSQLID]);                
            case pLaptopx: format(var, sizeof(var), "UPDATE `users` SET `Laptop`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pLaptop], PlayerInfo[playerid][pSQLID]);                
            case pCrime1x: format(var, sizeof(var), "UPDATE `users` SET `Crime1`='%s' WHERE `ID`='%d'",PlayerInfo[playerid][pCrime1], PlayerInfo[playerid][pSQLID]);                
            case pCrime2x: format(var, sizeof(var), "UPDATE `users` SET `Crime2`='%s' WHERE `ID`='%d'",PlayerInfo[playerid][pCrime2], PlayerInfo[playerid][pSQLID]);                
            case pCrime3x: format(var, sizeof(var), "UPDATE `users` SET `Crime3`='%s' WHERE `ID`='%d'",PlayerInfo[playerid][pCrime3], PlayerInfo[playerid][pSQLID]);                
            case pVictimx: format(var, sizeof(var), "UPDATE `users` SET `Victim`='%s' WHERE `ID`='%d'",PlayerInfo[playerid][pVictim], PlayerInfo[playerid][pSQLID]);                
            case pAccusedx: format(var, sizeof(var), "UPDATE `users` SET `Accused`='%s' WHERE `ID`='%d'",PlayerInfo[playerid][pAccused], PlayerInfo[playerid][pSQLID]);                
            case pEmailx: format(var, sizeof(var), "UPDATE `users` SET `Email`='%s' WHERE `ID`='%d'",PlayerInfo[playerid][pEmail], PlayerInfo[playerid][pSQLID]);                
            case pBTempx: format(var, sizeof(var), "UPDATE `users` SET `BTemp`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pBTemp], PlayerInfo[playerid][pSQLID]);                
            case pBYearx: format(var, sizeof(var), "UPDATE `users` SET `BYear`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pBYear], PlayerInfo[playerid][pSQLID]);                
            case pBMonthx: format(var, sizeof(var), "UPDATE `users` SET `BMonth`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pBMonth], PlayerInfo[playerid][pSQLID]);                
            case pBDayx: format(var, sizeof(var), "UPDATE `users` SET `BDay`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pBDay], PlayerInfo[playerid][pSQLID]);            
            case pBByx: format(var, sizeof(var), "UPDATE `users` SET `BBy`='%s' WHERE `ID`='%d'",PlayerInfo[playerid][pBBy], PlayerInfo[playerid][pSQLID]);                
            case pBReasonx: format(var, sizeof(var), "UPDATE `users` SET `BReason`='%s' WHERE `ID`='%d'",PlayerInfo[playerid][pBReason], PlayerInfo[playerid][pSQLID]);                
            case pWarnsx: format(var, sizeof(var), "UPDATE `users` SET `Warnings`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pWarns], PlayerInfo[playerid][pSQLID]);                
            case pTruckerSkillx: format(var, sizeof(var), "UPDATE `users` SET `TruckerSkill`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pTruckerSkill], PlayerInfo[playerid][pSQLID]);                
            case pGarbageSkillx: format(var, sizeof(var), "UPDATE `users` SET `GarbageSkill`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pGarbageSkill], PlayerInfo[playerid][pSQLID]);                
            case pShowJobx: format(var, sizeof(var), "UPDATE `users` SET `ShowJob`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pShowJob], PlayerInfo[playerid][pSQLID]);                
            case pShowFPx: format(var, sizeof(var), "UPDATE `users` SET `ShowFP`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pShowFP], PlayerInfo[playerid][pSQLID]);                
            case pShowLogox: format(var, sizeof(var), "UPDATE `users` SET `ShowLogo`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pShowLogo], PlayerInfo[playerid][pSQLID]);                
            case pShowCeasx: format(var, sizeof(var), "UPDATE `users` SET `ShowCeas`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pShowCeas], PlayerInfo[playerid][pSQLID]);                
            case pFarmerSkillx: format(var, sizeof(var), "UPDATE `users` SET `FarmerSkill`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pFarmerSkill], PlayerInfo[playerid][pSQLID]);                    
            case pPremiumPointsx: {
                format(var, sizeof(var), "UPDATE `users` SET `GoldPoints`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pPremiumPoints], PlayerInfo[playerid][pSQLID]);
                mysql_query(SQL, var);            
            }                            
            case pShowFactionx: format(var, sizeof(var), "UPDATE `users` SET `ShowFaction`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pShowFaction], PlayerInfo[playerid][pSQLID]);                
            case pGiftPointsx: format(var, sizeof(var), "UPDATE `users` SET `GiftPoints`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pGiftPoints], PlayerInfo[playerid][pSQLID]);                
            case pNewbieMutex: format(var, sizeof(var), "UPDATE `users` SET `NewbieMute`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pNewbieMute], PlayerInfo[playerid][pSQLID]);                
            case pReportTimex: format(var, sizeof(var), "UPDATE `users` SET `ReportTime`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pReportTime], PlayerInfo[playerid][pSQLID]);                                            
            case pDailyMissionx: format(var, sizeof(var), "UPDATE `users` SET `DailyMission`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pDailyMission][0], PlayerInfo[playerid][pSQLID]);                
            case pDailyMission2x: format(var, sizeof(var), "UPDATE `users` SET `DailyMission2`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pDailyMission][1], PlayerInfo[playerid][pSQLID]);                
            case pProgressx: format(var, sizeof(var), "UPDATE `users` SET `Progress`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pProgress][0], PlayerInfo[playerid][pSQLID]);            
            case pProgress2x: format(var, sizeof(var), "UPDATE `users` SET `Progress2`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pProgress][1], PlayerInfo[playerid][pSQLID]);                
            case pPizzaSkillx: format(var, sizeof(var), "UPDATE `users` SET `PizzaSkill`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pPizzaSkill], PlayerInfo[playerid][pSQLID]);                                
            case pCurierSkillx: format(var, sizeof(var), "UPDATE `users` SET `CurierSkill`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pCurierSkill], PlayerInfo[playerid][pSQLID]);                            
            case pPilotSkillx: format(var, sizeof(var), "UPDATE `users` SET `PilotSkill`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pPilotSkill], PlayerInfo[playerid][pSQLID]);                                    
            case pShowHPx: format(var, sizeof(var), "UPDATE `users` SET `ShowHP`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pShowHP], PlayerInfo[playerid][pSQLID]);                                        
            case pShowAPx: format(var, sizeof(var), "UPDATE `users` SET `ShowAP`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pShowAP], PlayerInfo[playerid][pSQLID]);                                
            case pVipx: format(var, sizeof(var), "UPDATE `users` SET `Vip`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pVip], PlayerInfo[playerid][pSQLID]);    

            case pCarLicSx: format(var, sizeof(var), "UPDATE `users` SET `CarLicS`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pCarLicS], PlayerInfo[playerid][pSQLID]);    
            case pGunLicSx: format(var, sizeof(var), "UPDATE `users` SET `GunLicS`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pGunLicS], PlayerInfo[playerid][pSQLID]);    
            case pFlyLicSx: format(var, sizeof(var), "UPDATE `users` SET `FlyLicS`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pFlyLicS], PlayerInfo[playerid][pSQLID]);    
            case pBoatLicSx: format(var, sizeof(var), "UPDATE `users` SET `BoatLicS`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pBoatLicS], PlayerInfo[playerid][pSQLID]);    
            case pJackerSkillx: format(var, sizeof(var), "UPDATE `users` SET `IceSkill`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pJackerSkill], PlayerInfo[playerid][pSQLID]);    

            
        }
        if(type != pPremiumPointsx) mysql_query(SQL, var);
    }
    return 1;
485}
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.