Tag mismatch with a function
#1

OK, I'm trying to work out a simple teleport script, but I get a tag mismatch error. Here's the important chunk of the code:
Код:
Teleport(id_player, coord_x, coord_y, coord_z)
{
  if(IsPlayerInAnyVehicle(id_player) == 1)
  {
    SetVehiclePos(GetPlayerVehicleID(id_player), coord_x, coord_y, coord_z);
  }
  else
  {
    SetPlayerPos(id_player, coord_x, coord_y, coord_z);
  }
}
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/chilliad", cmdtext, true, 10) == 0)
  {
    GameTextForPlayer(playerid,"Welcome to Chilliad",4000,3);
    Teleport(playerid, -2372.1711, -1601.2511, 498.4596);   //The thing gives 3 tag mismatches on this line.
    return 1;
  }
}
I just started to program on PAWNO, so I can't do much. I also looked around this forum and many people got tag mismatch error, but not the way I got it.
Reply


Messages In This Thread
Tag mismatch with a function - by Gerinych - 01.07.2009, 19:11
Re: Tag mismatch with a function - by refshal - 01.07.2009, 19:18
Re: Tag mismatch with a function - by Ignas1337 - 01.07.2009, 19:20
Re: Tag mismatch with a function - by kaisersouse - 01.07.2009, 19:22
Re: Tag mismatch with a function - by Gerinych - 01.07.2009, 19:23
Re: Tag mismatch with a function - by kaisersouse - 01.07.2009, 19:24
Re: Tag mismatch with a function - by Gerinych - 01.07.2009, 19:33
Re: Tag mismatch with a function - by Ignas1337 - 01.07.2009, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)