Im having probplems with something please help!
#1

ok so i wanted to make a teleport that freezes you and sets you in a diff virtual world so the vehicles wont load and it will give the map time to load on mapped objects. so i made this

Код:
G_Teleport(playerid, xpos, ypos, zpos)
{
	if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	  SetVehiclePos(GetPlayerVehicleID(playerid), xpos, ypos, zpos);
	  TogglePlayerControllable(playerid, 0);
	  SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 10);
	  SetPlayerVirtualWorld(playerid, 10);
	  playerdata[playerid][xposition] = xpos;
      playerdata[playerid][yposition] = ypos;
	  playerdata[playerid][zposition] = zpos;
      SetTimerEx("UnFreezeVehicle", 5000, 0, "i", playerid);
      return 1;
	}
	else
	{
      SetPlayerPos(playerid, xpos, ypos, zpos);
	  TogglePlayerControllable(playerid, 0);
	  SetPlayerVirtualWorld(playerid, 10);
      SetTimerEx("UnFreeze", 5000, 0, "i", playerid);
      return 1;
	}
}
and i used the callback on my teleports command

Код:
G_Teleport(playerid, 1357.8088,-1845.0336,47.2175);
and i get these errors and it doesn't make any sense at all as i have playerid, and x and an y and a z

Код:
D:\...\gamemodes\GStunts.pwn(3829) : warning 213: tag mismatch
D:\...\gamemodes\GStunts.pwn(3829) : warning 213: tag mismatch
D:\...\gamemodes\GStunts.pwn(3829) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
all help is appreciated as i cant continue debugging without understanding why i am getting tag mismatch when there is not one :/

please mind the indentation errors its from copy pasting the code from my script to the forms
Reply


Messages In This Thread
Im having probplems with something please help! - by BLAbla93 - 20.04.2010, 01:26
Re: Im having probplems with something please help! - by cessil - 20.04.2010, 01:38
Re: Im having probplems with something please help! - by BLAbla93 - 20.04.2010, 01:45
Re: Im having probplems with something please help! - by Calgon - 20.04.2010, 01:46
Re: Im having probplems with something please help! - by BLAbla93 - 20.04.2010, 02:32

Forum Jump:


Users browsing this thread: 1 Guest(s)