SA-MP Forums Archive
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: Tag mismatch? (/showthread.php?tid=432118)



Help me? - uTorrent - 21.04.2013

C:\Documents and Settings\Utente\Desktop\GM\LSRP 1.0 EN Gaming\Europe Nation Gaming Roleplay\gamemodes\enrp.pwn(5642) : warning 213: tag mismatch
PHP код:
                   if(MotelInfo[h][hValue] != 0) { 



Re: Tag mismatch? - MattyG - 21.04.2013

Could you show us where you declare MotelInfo please?


Re: Tag mismatch? - uTorrent - 21.04.2013

Quote:
Originally Posted by MattyG
Посмотреть сообщение
Could you show us where you declare MotelInfo please?
PHP код:
new MotelInfo[SCRIPT_MAXMOTELS][mInfo]; 



Re: Tag mismatch? - Jstylezzz - 21.04.2013

hValue... Let's me think of a house.. Isn't the thing you try to do something like, mValue or something?


Re: Tag mismatch? - MattyG - 21.04.2013

nvm, ignore me


Re: Tag mismatch? - uTorrent - 21.04.2013

Quote:
Originally Posted by Jstylezzz
Посмотреть сообщение
hValue... Let's me think of a house.. Isn't the thing you try to do something like, mValue or something?
I found the error ... thanks, lol. I typed the h instead of m.
However, I have two other warning, always "tag mismatch".

Код:
C: \ Documents and Settings \ User \ Desktop \ GM \ LSRP 1.0 Gaming EN \ Europe Nation Gaming Roleplay \ gamemodes \ enrp.pwn (61616): warning 213: tag mismatch
C: \ Documents and Settings \ User \ Desktop \ GM \ LSRP 1.0 Gaming EN \ Europe Nation Gaming Roleplay \ gamemodes \ enrp.pwn (61616): warning 213: tag mismatch
PHP код:
    for(new 0sizeof(BizzInfo); h++)
                {
                    if(
PlayerToPoint(2.0iBizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
                    {
                        if(
BizzInfo[h][bOwned] == 1)
                        {
                            
format(stringsizeof(string), "~b~SHOP:~w~%s~b~~n~OWNER:~w~%s~n~~b~VALUE:~w~ $%d",BizzInfo[h][bMessage],SBizzInfo[h][bOwner],SBizzInfo[h][bEntranceCost]); // Line 61616, warning.
                        
}
                        else
                        {
                            
format(stringsizeof(string), "~w~%s~w~~n~This Business is for sale~n~Cost: ~g~$%d ~w~Level : %d ~n~~b~ /buybiz ~w~to buy this Business",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
                        }
                        
InfoBoxForPlayer(istring);
                        
SendDebugMessage("CustomPickups, BizzInfo");
                    }
                } 



Re: Tag mismatch? - MattyG - 21.04.2013

Show us where you declare BizzInfo and show us the enum.


Re: Tag mismatch? - uTorrent - 21.04.2013

Quote:
Originally Posted by MattyG
Посмотреть сообщение
Show us where you declare BizzInfo and show us the enum.
PHP код:
enum bInfo
{
    
bOwned,
    
bOwner[64],
    
bMessage[128],
    
bExtortion[MAX_PLAYER_NAME],
    
Float:bEntranceX,
    
Float:bEntranceY,
    
Float:bEntranceZ,
    
Float:bExitX,
    
Float:bExitY,
    
Float:bExitZ,
    
bLevelNeeded,
    
bBuyPrice,
    
bEntranceCost,
    
bTill,
    
bLocked,
    
bInterior,
    
bProducts,
    
bMaxProducts,
    
bPriceProd,
    
bProdBiz,
    
bGunLicBiz,
    
bPickupID,
    
bWorld,
};
new 
BizzInfo[58][bInfo];
enum sbInfo
{
    
sbOwned,
    
sbOwner[64],
    
sbMessage[128],
    
sbExtortion[MAX_PLAYER_NAME],
    
Float:sbEntranceX,
    
Float:sbEntranceY,
    
Float:sbEntranceZ,
    
sbLevelNeeded,
    
sbBuyPrice,
    
sbEntranceCost,
    
sbTill,
    
sbLocked,
    
sbInterior,
    
sbProducts,
    
sbMaxProducts,
    
sbPriceProd,
    
sbPickupID,
};
new 
SBizzInfo[11][sbInfo]; 



Re: Tag mismatch? - Jstylezzz - 21.04.2013

SBizzInfo[h][bOwner] and SBizzInfo[h][bEntranceCost]..

This has to be either SBizzInfo[h][sbOwner] or BizzInfo[h][bOwner]

same for SBizzInfo[h][sbEntranceCost] or BizzInfo[h][bEntranceCost]

has to be either SBizzInfo[h][bEntranceCost]