warning 213: tag mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 213: tag mismatch (
/showthread.php?tid=628931)
warning 213: tag mismatch -
axellech - 17.02.2017
Someone help me solve this plz :v
Код:
C:\Users\gamemodes\gamemode.pwn(4280) : warning 213: tag mismatch
C:\Users\gamemodes\gamemode.pwn(4280) : warning 213: tag mismatch
C:\Users\gamemodes\gamemode.pwn(4280) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
Код:
Line 4280:
CreateDynamicPickup(1239, 23, bX, bY, bZ, 0);
I'm trying to put a PickupID
1239 At the entrance of businesses But it shows 3 warnings.
Can someone help me?
bX, bY, bZ : Indicates the business entries.
Код:
enum businessEnum {
bID,
Float:bX,
Float:bY,
Float:bZ,
bPrice,
bInt,
bMoney,
bLocked,
bOwner[MAX_PLAYER_NAME],
bName[20],
bRadio[200],
bFee,
bStreet[40],
bHousenumber,
bBusinesszip,
bTaxes,
bFaction
}
new BusinessInfo[MAX_BUSINESSES][businessEnum];
Re: warning 213: tag mismatch -
Rongvaldyr - 17.02.2017
Can you post all the codes where you put #line 4280 pls?
Like where you do it.
Re: warning 213: tag mismatch -
DRIFT_HUNTER - 17.02.2017
Everything seems fine with that line. Check file name where that warnings occurs, and try commenting that line (see if warnings are gone then).
Re: warning 213: tag mismatch -
Vince - 17.02.2017
Quote:
Originally Posted by axellech
Код:
Line 4280:
CreateDynamicPickup(1239, 23, bX, bY, bZ, 0);
|
That is wrong. You're just inserting the enum constants which are quite literally the values 1, 2 and 3. You need to replace that with BusinessInfo[?][bX] (etc.), replacing the question marks with whatever variable you use to iterate over the array.
Re: warning 213: tag mismatch -
axellech - 17.02.2017
...up :v
Re: warning 213: tag mismatch -
ranme15 - 18.02.2017
Quote:
Originally Posted by axellech
...up :v
|
Quote:
That is wrong. You're just inserting the enum constants which are quite literally the values 1, 2 and 3. You need to replace that with BusinessInfo[?][bX] (etc.), replacing the question marks with whatever variable you use to iterate over the array.
|
....