[SOLVED]3DTextDraw problem - Tag Mismatch
#1

Hey guys. I got this problem whenever I tried to create 3DTextDraw above an NPC, and I complete dont know how to solve it:

Код:
C:\Documents and Settings\Hidde\Bureaublad\scripting new\gamemodes\HidStuntServ.pwn(196) : warning 213: tag mismatch
C:\Documents and Settings\Hidde\Bureaublad\scripting new\gamemodes\HidStuntServ.pwn(204) : warning 213: tag mismatch
C:\Documents and Settings\Hidde\Bureaublad\scripting new\gamemodes\HidStuntServ.pwn(212) : warning 213: tag mismatch
C:\Documents and Settings\Hidde\Bureaublad\scripting new\gamemodes\HidStuntServ.pwn(220) : warning 213: tag mismatch
C:\Documents and Settings\Hidde\Bureaublad\scripting new\gamemodes\HidStuntServ.pwn(228) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
If i join my server, everything works fine and so on, no known issues (yet), but I'd really like to have those warnings removed. Could anyone help? Here's my script code:


pawn Код:
if(IsPlayerNPC(playerid))
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname,"busline1",true))
    {
      PutPlayerInVehicle(playerid,busline1,0);
      SetPlayerSkin(playerid,253);
      new Text3D:busline1text;
      busline1text = Create3DTextLabel("Las Venturas Canny Bus \n Following: Line 1 \n Zone: Middle-North",COLOR_SIENNA,0.0,0.0,5.0,60.0,0,0.0);
      Attach3DTextLabelToVehicle(busline1text,busline1,0.0,0.0,5.0);
    }
    if(!strcmp(npcname,"busline2",true))
    {
      PutPlayerInVehicle(playerid,busline2,0);
      SetPlayerSkin(playerid,253);
      new Text3D:busline2text;
      busline2text = Create3DTextLabel("Las Venturas Canny Bus \n Following: Line 2 \n Zone: North-East",COLOR_SIENNA,0.0,0.0,5.0,60.0,0,0.0);
      Attach3DTextLabelToVehicle(busline2text,busline2,0.0,0.0,5.0);
        }
        if(!strcmp(npcname,"BLine1",true))
        {
          PutPlayerInVehicle(playerid,BLine1,0);
          SetPlayerSkin(playerid,253);
          new Text3D:BLine1text;
      BLine1text = Create3DTextLabel("Bikini Line Coach \n Following: Line 9 \n Zone: San Andreas Highways",COLOR_SIENNA,0.0,0.0,5.0,60.0,0,0.0);
      Attach3DTextLabelToVehicle(BLine1text,BLine1,0.0,0.0,5.0);
        }
        if(!strcmp(npcname,"Streak",true))
        {
          PutPlayerInVehicle(playerid,Streak,0);
          SetPlayerSkin(playerid,253);
          new Text3D:Streaktext;
      Streaktext = Create3DTextLabel("Brown Streak \n Following: Line 4 \n Zone: San Andreas Railways",COLOR_SIENNA,0.0,0.0,5.0,60.0,0,0.0);
      Attach3DTextLabelToVehicle(Streaktext,Streak,0.0,0.0,5.0);
        }
        if(!strcmp(npcname,"Tram",true))
        {
          PutPlayerInVehicle(playerid,Tram,0);
          SetPlayerSkin(playerid,253);
          new Text3D:Tramtext;
      Tramtext = Create3DTextLabel("Garcia \n Following: Line 16 \n Zone: San Fierro Tramways",COLOR_SIENNA,0.0,0.0,5.0,60.0,0,0.0);
      Attach3DTextLabelToVehicle(Tramtext,Tram,0.0,0.0,5.0);
        }
    return 1;
  }
Reply
#2

You have last parameter in Create3DTextLabel always 0.0, but change it to 0.

For example:

pawn Код:
busline1text = Create3DTextLabel("Las Venturas Canny Bus \n Following: Line 1 \n Zone: Middle-North",COLOR_SIENNA,0.0,0.0,5.0,60.0,0,0.0);
to

pawn Код:
busline1text = Create3DTextLabel("Las Venturas Canny Bus \n Following: Line 1 \n Zone: Middle-North",COLOR_SIENNA,0.0,0.0,5.0,60.0,0,0);
Reply
#3

Quote:
Originally Posted by MadeMan
You have last parameter in Create3DTextLabel always 0.0, but change it to 0.

For example:

pawn Код:
busline1text = Create3DTextLabel("Las Venturas Canny Bus \n Following: Line 1 \n Zone: Middle-North",COLOR_SIENNA,0.0,0.0,5.0,60.0,0,0.0);
to

pawn Код:
busline1text = Create3DTextLabel("Las Venturas Canny Bus \n Following: Line 1 \n Zone: Middle-North",COLOR_SIENNA,0.0,0.0,5.0,60.0,0,0);
Works, thanks man.

Thread may be locked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)