How do i attach a chat bubble to a bot?
#8

hmm i tried 3D label this is how it turned out:

My Code (Under onplayerspawn):
Код:
  if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "rhinobot", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, tank, 0); //Putting the NPC into the vehicle we created for it.
      new tanklabel;
      tanklabel = Create3DTextLabel("Im a tank RAWR!!",0x008080FF,0.0,0.0,0.0,0.0,0);
      Attach3DTextLabelToVehicle(tanklabel, tank, 0.0, 0.0, 0.0);
      
    }
    return 1;
  }
Errors:

Код:
C:\Users\user\Desktop\SAMP Server\Everything World\gamemodes\EverythingWorldTwoBeta.pwn(323) : warning 213: tag mismatch
C:\Users\user\Desktop\SAMP Server\Everything World\gamemodes\EverythingWorldTwoBeta.pwn(324) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Line 323 is the Create3DTextLabel
Reply


Messages In This Thread
How do i attach a chat bubble to a bot? - by [mad]MLK - 03.10.2009, 19:20
Re: How do i attach a chat bubble to a bot? - by Danny_Costelo - 03.10.2009, 19:21
Re: How do i attach a chat bubble to a bot? - by d0 - 03.10.2009, 19:22
Re: How do i attach a chat bubble to a bot? - by [mad]MLK - 03.10.2009, 19:28
Re: How do i attach a chat bubble to a bot? - by rensfromrpas - 03.10.2009, 20:21
Re: How do i attach a chat bubble to a bot? - by Jay_ - 03.10.2009, 22:39
Re: How do i attach a chat bubble to a bot? - by Sew_Sumi - 03.10.2009, 23:16
Re: How do i attach a chat bubble to a bot? - by [mad]MLK - 04.10.2009, 00:19
Re: How do i attach a chat bubble to a bot? - by Gappy - 04.10.2009, 00:30

Forum Jump:


Users browsing this thread: 4 Guest(s)