Jump to content
  • 0

Problema Scripting - Error 10


Elvis3

Question

Salut!

Am o problema la compilare, primesc aceasta eroare " C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(398) : error 010: invalid function or declaration


C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(399) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(400) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(401) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(402) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(403) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(404) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(405) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(406) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(407) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(408) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(409) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(410) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(411) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(412) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(413) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(414) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(415) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(416) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(417) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(418) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(419) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(420) : error 010: invalid function or declaration "

Initial pornisem de la alta eroare si am ajuns aici. Ma poate ajuta cineva?

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

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]);                
            case pMatsx: format(var, sizeof(var), "UPDATE `users` SET `Materials`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pMats], PlayerInfo[playerid][pSQLID]);    

 

Cam asta e.. Eu am aveam la inceput error 17. Am mutat #include <systems> la inceput gm-ului. Si mi-a dat asta. + mutat stock createvehicleEx din gm in include. Nu prea inteleg de la ce ar putea fi.

U13zWtpg.txt

Link to comment
Share on other sites

  • 0

Am rezolvat erorile initiale mutand #include <systems> din nou. De asta am primit asta:

C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(394) : error 029: invalid expression, assumed zero
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(394) : error 017: undefined symbol "Update"
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(394) : error 029: invalid expression, assumed zero
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(394) : fatal error 107: too many error messages on one line

Va las linia (functia) mai jos:

Gamemode:

public OnGameModeInit() {

    mysql_log(LOG_ERROR, LOG_TYPE_TEXT);

    if(SERVER_HOSTSTATUS == 1) SQL = mysql_connect("localhost", "root", "burned", ""), print("Server: hosted");
    else SQL = mysql_connect("localhost", "root", "burned", ""), print("Server: localhost");

    new Year, Month, Day, Hour, Minute, Second;
    getdate(Year, Month, Day);
    gettime(Hour, Minute, Second);
    format(StartDate, sizeof(StartDate), "%02d/%02d/%d %02d:%02d:%02d", Day, Month, Year, Hour, Minute, Second);

    new szQuery[128];
    format(szQuery, sizeof(szQuery), "SELECT * FROM `users`");
    new Cache: result = mysql_query(SQL, szQuery);
     ServerAccounts = cache_get_row_count ();
    cache_delete(result);
    
    #include <systems>

    LoadMaps();
    LoadTDs();
    LoadIcons();
    LoadGates();
    LoadSVehicles();
    LoadVehicles();
    LoadSafeZones();

    LoadProperty();
    LoadClans();
    LoadGraffiti();
    LoadBizz();
    LoadTurfs();
    LoadFactions();
    LoadPickups();
     LoadJobs();
     LoadFurnitures();
     LoadFaction();
     LoadSystems();
    LoadStuff();
    LoadSafes();

    skinlist = LoadModelSelectionMenu("skins.txt");
    hats = LoadModelSelectionMenu("hats.txt");
    furnitures = LoadModelSelectionMenu("furnitures.txt");
    glasses = LoadModelSelectionMenu("glasses.txt");
    fskins[0] = LoadModelSelectionMenu("f1.txt");
    fskins[1] = LoadModelSelectionMenu("f2.txt");
    fskins[2] = LoadModelSelectionMenu("f3.txt");
    fskins[3] = LoadModelSelectionMenu("f4.txt");
    fskins[4] = LoadModelSelectionMenu("f5.txt");
    fskins[5] = LoadModelSelectionMenu("f6.txt");
    fskins[6] = LoadModelSelectionMenu("f7.txt");
    fskins[7] = LoadModelSelectionMenu("f8.txt");
    fskins[8] = LoadModelSelectionMenu("f9.txt");
    fskins[9] = LoadModelSelectionMenu("f10.txt");
    fskins[10] = LoadModelSelectionMenu("f11.txt");
    fskins[11] = LoadModelSelectionMenu("f12.txt");
    fskins[12] = LoadModelSelectionMenu("f13.txt");

Systems (include):

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]);                
            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;
}

Link to comment
Share on other sites

  • 0

Orice #include nu se pune in OnGameModeInit ci la inceputul scriptului, de obicei langa alte #include (de preferabil daca este ceva custom ca si systems atunci trebui pus la captul acestei liste). Sterge din OnGameModeInit si pune-l unde trebuie si trimite erorile pe care le primesti cand incluzi systems in mod corect

Link to comment
Share on other sites

  • 0

Asa cum am spus si mai sus, aceleasi erori ca prima data.

C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(394) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(395) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(397) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(398) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(399) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(400) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(401) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(402) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(403) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(404) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(405) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(406) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(407) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(408) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(409) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(410) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(411) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(412) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(413) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(414) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(415) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(416) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(417) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(418) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(419) : error 010: invalid function or declaration
C:\Users\*\Desktop\burned.ro\pawno\include\systems.inc(420) : error 010: invalid function or declaration

 

Aici ai si liniile de cod.

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]);                
            case pMatsx: format(var, sizeof(var), "UPDATE `users` SET `Materials`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pMats], PlayerInfo[playerid][pSQLID]);    

Link to comment
Share on other sites

  • 0

Pentru ca exista o sansa intr-o mie ca editorul cu care ai deschis si salvat fisierul systems.inc sa fi adaugat ceva suplimentar formatului pe care noi nu putem sa il vedem si sa nu ii placa compilatorului (sursa https://forums.alliedmods.net/showthread.php?t=304895 )

La altceva nu ma pot gandi pentru ca codul este pur si simplu "curat" si nu vad absolut nici o eroare evidenta sau ceva. Eventual ma gandesc ca ai putea deschide fisierul systems.inc direct cu pawno, sa salvezi folosind pawno si dupa sa iti deschizi gm si sa il compilezi

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.

  • Similar Content

    • By zNx[]
      Ce servicii pot oferi: Servicii scripting, tot ce tine de SA:MP
      Despre servicii: Ofer servicii scripting pe domeniul SA:MP, pot dezvolta orice fel de sistem, chiar si unul de dimensiuni mari, pretul acestuia va creste deoarece fiecare sistem este direct proportional cu pretul.Ma ocup si cu rezolvarea bugurilor, optimizarea gamemode-ului.Fac acest lucru de aproximativ 6 ani. Plata se face la predarea sistemului. După verificarea produsului pe localhost/server de teste(dacă e cazul) se face plata, produsul nu se înmânează, până nu este verificat daca banii au fost primiti. In cazul in care comandati un sistem mai complex, va trebui sa oferiti o garantie inainte deoarece volumul de munca este unul foarte mare si clientul se poate razgandi.
      Sisteme dezvoltate/Portofoliu": Sistemele create de mine se prezinta daca clientul este curios, in urma unui test, pe un server de teste.
       http://greenblood.ro/forum/index.php?/forum/43-updates/ 
       
      Metode de plata a servicilor:  
      Paypal - Suma minima de 3 euro.
      PaysafeCard - Suma minima de 5 euro.
      Skrill - Suma minima de 5 euro.
      Metode de contact:
      Email: [email protected] Discord: zNx#0198 Mesaj: privat pe forum
    • By NSFows
      Salut! Am o problema mare am achizitionat un host de la gazduirejocuri dupa am bagat gm ul meu pe host dupa intru pe server merge ok astept maxim 2 minute, spameaza un text random si dupa da ca un fel de crash si nu mai merge de loc sa intru, acum am mai incercat nici macar nu mai porneste sa intru alea 2 minute acum nimic. Mentionez faptul ca pe localhost (pe windows) Merge perfect dar cand il bag pe host (Hostul este pe linux) Se intampla asta cu crash ul.
      Ma puteti ajuta va rog dau si bani pe paypal daca ma ajutati!
    • By Yonut
      Servicii scripting
      Ofer servicii scripting pentru SA:MP (PAWN) si de Web Development.
      ▶️ Detalii generale:
      Timp de lucru: 2-3 sau 4 ore pe zi Disponibilitate: Luni-Vineri > 20:00 - 00:00 | Sambata-Duminica > 14:00 - 22:30 | Pot fi disponibil si in afara acestui program Plata se face pe fiecare modificare / update / etc. ▶️ Detalii de contact:
      Discord: Yonut#4185 PM ▶️ Experienta:
      Fost scripter si web developer la cateva comunitati (time4fun, play-gaming) & site-uri. Mai bine de 3-4 ani in acest domeniu. ▶️ Cateva lucrari (un mic portofoliu):
      Canal de YT Site personal  
      👉 Mai multe detalii in privat.
    • By Mister
      Poziţie: Scripter si Mapper 
      Ce servicii pot oferi: Scripturi la comanda clientului, suport pentru montare pe host(server/ ipb forum), nu fac gmuri de la 0 necesita mult timp si nu am garantia ca voi fi platit.
      Modalitatea de lucru:
      Creez scriptul comandat Deschid serverul la mine in pc Il testati Platiti Primiti scriptul Il montati singuri sau vi-l montez eu. Cunostinte: Html, Php, Mysql, C, Pawn + Mapping de calitate
      Alte Detalii: Pretul il stabilim in functie de complexitatea scriptului, plata prin ce metode dispuneti: 
      Paypal Paysafe Transfer bancar Pagina de FB: https://www.facebook.com/scripting.pawn/
      Portofoliu:
      Gamemode BristonGOV Gamemode OhioRPG Serverul B4Play Serverul Treed PUBG arena Solo Rob Team Rob CS:GO Case Opening CS:GO Buy Menu Gun License Ruleta Casino Step Tutorial  
       
       
      #1 primul topic din aceasta categorie  
    • By TheGodfather
      Salut, aveti idee cum pot sa rezolv problema aceasta?
      [02:54:59] Loading plugin: streamer.so
      [02:54:59] Failed (/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by plugins/streamer.so))
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.