20.04.2010, 01:26
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
and i used the callback on my teleports command
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
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
Код:
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;
}
}
Код:
G_Teleport(playerid, 1357.8088,-1845.0336,47.2175);
Код:
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.
please mind the indentation errors its from copy pasting the code from my script to the forms

