wtf warning 213: tag mismatch
#1

PHP код:
CMD:createshop(playeridparams[])
{
    new 
string[80], file[50], labeltext[50], Float:XFloat:YFloat:Z;
        if(!
dini_Exists("StoreInfo.ini"))
        {
            
dini_Create("StoreInfo.ini");
        }
        
GetPlayerPos(playeridXYZ);
        
dini_IntSet("StoreInfo.ini""TotalStores", (dini_Int("StoreInfo.ini""TotalStores") + 1));
            new 
ammunationid dini_Int("StoreInfo.ini""CurrentAmmunationID");
            if(
ammunationid >= MAX_AMMUNATIONS) return SendClientMessage(playerid0xB60000FF"Unable to create more ammunations. There are already "#MAX_AMMUNATIONS" created. Increase limit in the script to create more.");
            
else
            {
                
format(stringsizeof(string), "Ammunation ID %d Created."ammunationid);
                
format(labeltextsizeof(labeltext), "Ammunation");
                
format(filesizeof(file), "/Files/%d.ini"ammunationid);
                if(!
dini_Exists(file))
                {
                     
dini_Create(file);
                }
                new 
msg[128];
                
format(msg128"Type /scanvenge to Scavenge");
                
dini_IntSet("StoreInfo.ini""CurrentAmmunationID", (ammunationid 1));
                
dini_IntSet("StoreInfo.ini""CurrentAmmunationWorld", (ammunationid 1000));
                
AmmunationCPOut[ammunationid] = CreateDynamic3DTextLabel(msgCOLOR_LIGHTBLUEXYZ50.0);
            }
        
StoreLabel[dini_Int(file"StoreID")] = Create3DTextLabel(labeltext0x00BC00FFXYZ2501);
        
dini_FloatSet(file"CPOutX"X);
        
dini_FloatSet(file"CPOutY"Y);
        
dini_FloatSet(file"CPOutZ"Z);
        
GetPosInFrontOfPlayer(playeridXY, -2.5);
        
dini_IntSet(file"StoreID"dini_Int("StoreInfo.ini""TotalStores"));
        
SendClientMessage(playerid0xFFFF00AAstring);
    return 
1;

problem:
PHP код:
D:\Downloads\ZombieWorld\filterscripts\reality.pwn(147) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Warnings

Line 147:
PHP код:
                AmmunationCPOut[ammunationid] = CreateDynamic3DTextLabel(msgCOLOR_LIGHTBLUEXYZ50.0); 
on top of script:
PHP код:
#define MAX_AMMUNATIONS        20
new AmmunationCPOut[MAX_AMMUNATIONS]; 
please help
Reply
#2

It should have the Text3D tag on it:
pawn Код:
new Text3D: AmmunationCPOut[MAX_AMMUNATIONS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)