[Pomoc] Tag mismatch

Započeo xFORCERx
22. Mar. 2013. Zaključano
1,323
pregleda
14
postova
sime30
4
Enforcer
22. Mar. 2013.
Skripta koju koristim: PPC Trucking
Detaljan opis problema: Skratit cu ovaj put jer sam napisao prije 10 min toliko teksta i onda mi zablokirao komp -.- ... Znaci, mijenjao sam enum za igrace i takve stvari i onda sam po potrebi mijenjao ostale stvari sa CRL + H
Dio skripte:


Evo vam kodovi najbitniji!

enum Podaci
{
Lozinka, // Holds the password of the player's account
NovaLozinka, // Holds the new password for the player
Level, // The admin-level of the player
Zatvoren, // Holds jail-time left for this player
ZatvorenTimer, // Holds the reference to the jail-timer
Zamrznut, // Holds the time this player is frozen
ZamrznutTimer, // Holds the reference to the frozen-timer
Upozorenja, // Holds the number of warnings for this player
Banova, // Holds the number of bans for this player
BanTimer, // Holds the time where the player is unbanned automatically (when the ban is over)
bool:Prijavljen, // Holds true if the player has properly logged in
bool:Utisan, // Holds "true" if the player is Utisan
bool:ProcitaoPravila, // Holds "true" if the player accepted the rules
AutoReportTimer, // Used to prevent the anti-hack system reporting the player every half a second when the player uses hacks
KamionDozvola, // Holds "1" if the player has acquired his truckers-license
BusDozvola, // Holds "1" if the player has acquired his busdriver license
Novac, // Holds the money of this player
Score, // Holds the score of this player
ImeIgraca, // Holds the name of the player
Kuce, // Holds the HouseID's of the houses that the player owns (index of the AHouseData array)
    TrenutnaKuca, // Holds the HouseID to track in which house the player currently is (used when accessing the housemenu)
Biznisi, // Holds the BusinessID's of the business that the player owns
TrenutniBiznisi, // Holds the BusinessID to track in which business the player currently is (used when accessing the businessmenu)
Klasa, //Holds the Class that the player chose (1 = truckdriver, 2 = taxidriver, ... -> see DEFINES)
SpectateID, // Holds the ID of the other player which this player is spectating
SpectateVozilo, // If the target player is inside a vehicle, store it here
SpectateTip, // Holds the type of spectating (none, player or vehicle)
Float:PrethodniX, // Holds the previous X location of the player (used to detect airbreak hacks)
Float:PrethodniY, // Holds the previous Y location of the player (used to detect airbreak hacks)
Float:PrethodniZ, // Holds the previous Z location of the player (used to detect airbreak hacks)
PrethodniInt, // Holds the previous interior id (used to detect airbreak hacks)
StatsKamion, // Holds the number of succesfully completed trucker-missions
StatsKonvoj, // Holds the number of completed trucking-routes when in a convoy
StatsVozacBusa, // Holds the number of completed busroutes
StatsPilot, // Holds the number of completed pilot-missions
StatsMafija, // Holds the number of completed mafia-missions
StatsMafijaUkradeno, // Holds the number of succesfully deliveries of stolen mafialoads
StatsPolicijaKaznjeno, // Holds the number of fined players for police
StatsPolicijaZatvoreno, // Holds the number of jailed players for police
StatsDostavljac, // Holds the number of completed courier-jobs
StatsAsistent, // Holds the number of player-vehicles that this player has repaired/refuelled
StatsAutomehanicar, // Holds the number of completed roadworker jobs
Float:StatsKilometraza, // Holds the total kilometers that the player has driven already
Text:Brzinomjer, // The TextDraw of the speedometer for this player
Text:Gorivo, // The textdraw of the fuel-gauge for this player
BrzinomjerTimer, // Holds the reference to the speedometer timer for this player
IgracevaBrzina, // Holds the speed of the player
RadarUhvatioIgraca, // This holds a value to prevent being caught multiple times by the same speedcamera
Timer_PoliceCanJailMe, // This holds a reference to the timer which is started when the player got warned by a police player
Value_PoliceCanJailMe, // This holds the remaining time for the Timer_PoliceCanJailPlayer timer
bool:PoliceCanJailMe, // This holds "true" when the player was warned by a police player but didn't stop before the timer ran out
bool:PoliceWarnedMe, // This holds "true" is the player got caught by a police player and got at least one warning
bool:AsistentPotreban, // Holds "true" is the player called for assistance
bool:PosaoZapocet, // States that the player has started a job or not
Text:MissionText, // Displays the mission info at the bottom of the screen
JobID, // Mission ID of the job (in the appropriate array, based on the PlayerClass), not used by truckers
JobStep, // Current step of the job (for trucker: 1 = going to load, 2 = delivering goods to destination)
Putnika, // Holds the number of passengers (used for busdriver, taxi classes)
IgracProvjeraTimer, // A special timer used by certain classes (police, mafia) to check players every second if they're wanted/carrying mafialoads
UtovarTimer, // The timer used for loading and unloading during jobs
VoziloTimerVrijeme, // Holds the remaining seconds for the global vehicletimer
VehicleID, // Holds the ID of the vehicle that the player is driving during his job
TrailerID, // Holds the ID of the trailer that the player has attached during his job (is 0 if no trailer attached)
TeretID, // Holds the ID of the load
PosaoLokacija1, // Holds the LocationID where to pickup the load (used in trucking missions)
PosaoLokacija2, // Holds the LocationID where to deliver the load (used in trucking missions)
bool:Pretovaren, // Holds True if the player's vehicle is overloaded (wanted level increases by 2)
bool:MafijaTeret, // Holds True is the player's load is wanted by the mafia
bool:MafijaTeretUkraden, // Holds true if the mafia-player has hijacked a mafia-load
bool:UKonvoj, // Holds true if the player has joined a convoy already
KonvojID, // Holds the ID of the convoy where this player is a member
KuceDostavljac, // This holds up to 10 HouseID's for use during Courier-missions
DostavljacMaxKorak, // This holds the max number of houses to deliver packages to
DialogFirstItem, // Holds the first array-index where a split dialog must start
DialogCarFirstCar, // Holds the first array-index where the carlist should start when the player asks to choose a car to spawn ("/car")
DialogPlaneFirstPlane, // Holds the first array-index where the planelist should start when the player asks to choose a plane to spawn ("/plane")
DialogTrailerFirstTrailer, // Holds the first array-index where the trailerlist should start when the player asks to choose a trailer to spawn ("/trailer")
DialogRentVClass, // Holds the ID of the chosen vehicle class to process when renting a vehicle
DialogRentCarIndex, // Holds the index in the ABuyableVehicles array which vehicle the player chose to rent
DialogBuyVClass, // Holds the ID of the chose vehicle class to process when buying a vehicle
DialogBuyCarIndex, // Holds the index in the ABuyableVehicles array which vehicle the player chose to buy
DialogGetCarHouseID, // Holds the HouseID from which to get a vehicle when using /getcar
DialogOtherPlayer, // Holds the id of the other player when viewing that other player's stats
DialogOtherPlayerHouse, // Holds the HouseID of the other player when viewing the stats for that house
BankaLozinka, // Bank-system: Used to hold the password to your bank-account
bool:BankaPrijavljen, // Bank-system: Used to determine if you have logged in to your bank account
BankaNovac, // Bank-system: Used to hold the money in your bank-account
UseMoney, // Bank-system: Used to hold the money you're be transferring to another player's account
LastIntrestTime, // Bank-system: Used to hold the last time where your bank account has received intrest
RentVoziloID // Holds the vehicle-id of the rented vehicle (if any)
}
new Korisnik;


Prva linija warninga je...

format(Load, 50, ALoads[Korisnik]); // ALoads sam ostavio, to je drugi enum...

Errori i Warninzi

C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(2794) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(2802) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(2806) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(2834) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(2856) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(2862) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(2892) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(2988) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3047) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3049) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3050) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3081) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3084) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3201) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3236) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3247) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3255) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3257) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3258) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3395) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3397) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3398) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3923) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3956) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3958) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3959) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3965) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3991) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3993) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(3994) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4000) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4024) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4026) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4078) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4105) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4127) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4167) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4200) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4202) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4203) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4210) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4245) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4355) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4357) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4398) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4428) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4450) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(4498) : warning 213: tag mismatch
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(5086) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(5086) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(5086) : warning 217: loose indentation
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(5086) : error 017: undefined symbol "HIndex"
C:\Documents and Settings\Petra\Desktop\Projekti\Modern Balkan Trucking Revolution\gamemodes\MBTR.pwn(5086) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.

--Lood--
5
Crime Lord
23. Mar. 2013.
Ako u sebi sadrzi slova ona koristis %s

format(Load, 50, "%s", ALoads[Korisnik]); // ALoads sam ostavio, to je drugi enum...

ili ako u sebi sadrzi samo brojeve onda %d

format(Load, 50, "%d",  ALoads[Korisnik]); // ALoads sam ostavio, to je drugi enum...


i sada tako ostalo 🙂
sime30
4
Enforcer
23. Mar. 2013.
Razumijem, ali kako da to (%s i %d) odjednom traži? Bilo je sve u redu dok nisam APlayerData preimenovao u Korisnik ?
sime30
4
Enforcer
23. Mar. 2013.
@Lood , iako znam da tvoj odgovor nema veze s ovime, probao sam, ali dođe isto!
Ostali?
Johnâ„¢
5
Godfather
23. Mar. 2013.
Postaj i taj drugi enum.
sime30
4
Enforcer
23. Mar. 2013.
Evo...

enum TLoad
{
LoadName, // The name of the load
bool:Mafia, // Holds "true" if this load is wanted by the mafia
Float:PayPerUnit, // Holds the price for every meter to haul this type of load (this gets multiplied by the distance to calculate the payment)
PCV_Required, // This holds the vehicle-type the player needs to use this load (and automatically the player's class)
FromLocations, // This array holds all loading-points for this load
ToLocations // This array holds all unloading-points for this load
}
new ALoads[] =
{
  blabla, to nije vazno
}
Johnâ„¢
5
Godfather
23. Mar. 2013.
Daj jos par linija iznad i ispod linije gdje ti javlja warning jer ne vidim nista sta bi moglo izazvat taj warning.
sime30
4
Enforcer
23. Mar. 2013.
Pa u tom i jest stvar, nema sta izazvati... Al evo ti nekoliko linija

format(StartLoc, 50, ALocations[Korisnik]);
format(EndLoc, 50, ALocations[Korisnik]);
format(Load, 50, ALoads[Korisnik]); // warning
Trucker_SetRandomOverloaded(playerid);
format(RouteText, 255, TXT_HaulingCargoFromToDeliver, Load, StartLoc, EndLoc);
Johnâ„¢
5
Godfather
23. Mar. 2013.
Ali ne kuzim od kud tebi LoadID varijabla?
sime30
4
Enforcer
23. Mar. 2013.
Evo iz ovog enuma za konvoj.. Ali vidi, ja sam skužio da izbacuje warninge tamo gdje sam stavio "Korisnik" umjesto bivseg "APlayerData" ..iako ne shvacam, aplayerdata vise ne postoji nigdje

enum KonvojData
{
Members, // This array holds the playerid's of all members (at index 0, the leader is stored), so a convoy can hold 1 leader and 9 members
LoadID, // Holds the ID of the load
Location1, // Holds the location-id of the start-location
Location2, // Holds the location-id of the end-location
Status, // Holds the status of the convoy (1 = open, 2 = full, 3 = closed, 0 = empty)
ConvoyStep, // Holds the jobstep for the entire convoy
TrailerModel, // Holds the trailer-model required by the convoy
bool:LeaderInformedTrailers, // Is used to inform the leader ONCE if all members failed to have the same trailer
Text:ConvoyTextLeader, // This is the textdraw for the leader of the convoy
Text:ConvoyTextMember, // This is the textdraw for all members of the convoy
ConvoyTimer // This convoy-timer checks everything for the whole convoy
}
new AConvoys;
Johnâ„¢
5
Godfather
23. Mar. 2013.
Fora je u tome sto ti pokusavas iz drugog enuma doc' do tog LoadID-a. Vise bih ti pomogao kad bih znao sto hoces s tim kodom napravit.
sime30
4
Enforcer
23. Mar. 2013.
Prijatelju, nije to fora, fora je što je prije meni compiler pokazao samo ono "compu phase" ili sta vec...(no warnings, no errors)

Ako ne vjerujes, pogledaj bivsi kod

format(Load, 50, ALoads[APlayerData]);

I moj kod...

format(Load, 50, ALoads[Korisnik]);
Johnâ„¢
5
Godfather
23. Mar. 2013.
Onda si ti negdje pogrijesio kod zamjene naziva tih enuma.
sime30
4
Enforcer
23. Mar. 2013.
Pokusao sam cak vratiti sve na APlayerData i nista... Ajd probat cu sve iz pocetka, jbg :/
Nemoj još zaključati, obavijestit cu te ovdje jesam li uspio ili ne!

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha