Jump to content

[DELETED]Problemă compilare


Khenwise
 Share

Recommended Posts

Salut, am o mică problemă la compilarea gamemode-ul L2P.

 

Primesc 4 erori, le aveți mai jos

\pawno\include\systems.inc(400) : error 029: invalid expression, assumed zero
\pawno\include\systems.inc(400) : warning 215: expression has no effect
\pawno\include\systems.inc(400) : error 001: expected token: ";", but found ")"
\pawno\include\systems.inc(400) : error 029: invalid expression, assumed zero
\pawno\include\systems.inc(400) : fatal error 107: too many error messages on one line

linia 400:

case pCashx: format(var, sizeof(var), "UPDATE users SET Money='%d' WHERE ID='%d'",GetPlayerCash(playerid), PlayerInfo[playerid][pSQLID]);

am încercat și cu asta dar degeaba 

case pCashx: format(var, sizeof(var), "UPDATE `users` SET `Money` = '%d' WHERE `ID` = '%d'", GetPlayerCash(playerid), PlayerInfo[playerid][pSQLID]);

iar aici aveți tot codul dacă e nevoie

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

Topic-ul a fost șters deoarece nu ai respectat modelul de postare. Te rugăm sa revii cu alt topic in care să respecți modelul.

Topic șters!

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...