Fix Warning Of Tag Mismatch
#1

Warnings
Code:
C:\Users\Anurag\Desktop\3G Cops And Robbers1\filterscripts\taxifilter.pwn(17) : warning 213: tag mismatch
C:\Users\Anurag\Desktop\3G Cops And Robbers1\filterscripts\taxifilter.pwn(51) : warning 213: tag mismatch
C:\Users\Anurag\Desktop\3G Cops And Robbers1\filterscripts\taxifilter.pwn(55) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Please Help me To Fix This Error
CODE
Code:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA

#include <a_samp>

#if defined FILTERSCRIPT
new MyFirstNPCVehicle;
new Text:Botinfo;
public OnFilterScriptInit()
{
	print("Taxi v0.1");
    ConnectNPC("Dave","newnpc");
    MyFirstNPCVehicle = CreateVehicle(420, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
    Botinfo = Create3DTextLabel("Anurag Saini",COLOR_GREEN,0.0,0.0,0.0,30.0,0);
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif

public OnPlayerSpawn(playerid)
{
	if(IsPlayerNPC(playerid))
		{
		new npcname[MAX_PLAYER_NAME];
		GetPlayerName(playerid, npcname, sizeof(npcname));
		SetPlayerSkin(playerid, 253);
		if(!strcmp(npcname, "Dave",true))
		{
		PutPlayerInVehicle(playerid, MyFirstNPCVehicle,0);
		SetPlayerColor(playerid,0xFFFFFFFF);
		}
        if(!strcmp(npcname, "Dave",true))
        {
        Attach3DTextLabelToPlayer(Botinfo, playerid, 0.0, 0.0, 0.0);
        }
        return 1;
        }
        return 1;
  }
Warning Lines
Code:
Botinfo = Create3DTextLabel("Anurag Saini",COLOR_GREEN,0.0,0.0,0.0,30.0,0);
Code:
Attach3DTextLabelToPlayer(Botinfo, playerid, 0.0, 0.0, 0.0);
Reply
#2

The tag for a 3D text label is 'Text3D:' and not just 'Text:'.
Reply
#3

what where
i can't understand
Reply
#4

PHP Code:
new Text:Botinfo
Should be:

PHP Code:
new Text3D:Botinfo
Reply
#5

okok i understand
Reply
#6

Tell Me One Things Also What Are The Things Require For Loading NPC In Game
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)