Fix Warning Of 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: Fix Warning Of Tag Mismatch (
/showthread.php?tid=614348)
Fix Warning Of Tag Mismatch -
CarRamper - 07.08.2016
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);
Re: Fix Warning Of Tag Mismatch -
AndySedeyn - 07.08.2016
The tag for a 3D text label is 'Text3D:' and not just 'Text:'.
Re: Fix Warning Of Tag Mismatch -
CarRamper - 07.08.2016
what where
i can't understand
Re: Fix Warning Of Tag Mismatch -
AndySedeyn - 07.08.2016
PHP Code:
new Text:Botinfo;
Should be:
PHP Code:
new Text3D:Botinfo;
Re: Fix Warning Of Tag Mismatch -
CarRamper - 07.08.2016
okok i understand
Re: Fix Warning Of Tag Mismatch -
CarRamper - 07.08.2016
Tell Me One Things Also What Are The Things Require For Loading NPC In Game