Tag mismatch?
#1

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) { 
Reply
#2

Could you show us where you declare MotelInfo please?
Reply
#3

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

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

nvm, ignore me
Reply
#6

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");
                    }
                } 
Reply
#7

Show us where you declare BizzInfo and show us the enum.
Reply
#8

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]; 
Reply
#9

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]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)