C:\Users\ASUS\Desktop\gta.sa\GTA San Andreas\samp\gamemodes\Ensure.pwn(34) : warning 213: tag mismatch C:\Users\ASUS\Desktop\gta.sa\GTA San Andreas\samp\gamemodes\Ensure.pwn(34 -- 44) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
//top new Float:x2,y2,z2,angle2; forward MINZCHECK(playerid); stock EnsurePlayerSpawn(playerid,Float:x,Float:y,Float:z,Float:angle) { SetPlayerPos(playerid,x,y,z); SetplayerFacingAngle(playerid,angle); SetTimer("MINZCHECK", 1500, 1); Float:x == x2 Float:y == y2 Float:z == z2 Float:angle == angle2; } public MINZCHECK(playerid) { new Float:tempx,tempy,tempz; GetPlayerPos(playerid,tempx,tempy,tempz); if(tempz<z2) { SetPlayerPos(playerid,x2,y2,z2); return 1; } else if(tempz>=z2) { KillTimer(MINZCHECK(playerid)); } return 1; }
new
Float:x2,
Float:y2,
Float:z2,
Float:angle2;
forward ToggleControl(playerid);
TogglePlayerControllable(playerid,0);
SetTimerEx("ToggleControl", 1500, 0, "i", playerid);
public ToggleControl(playerid)
{
TogglePlayerControllable(playerid,1);
}
//top
new Float:x2,y2,z2,angle2;
forward MINZCHECK(playerid);
stock EnsurePlayerSpawn(playerid,Float:x,Float:y,Float:z,Float:angle)
{
SetPlayerPos(playerid,x2,y2,z2);
SetplayerFacingAngle(playerid,angle2);
SetTimer("MINZCHECK", 1500, 1);
}
public MINZCHECK(playerid)
{
new Float:tempx,tempy,tempz;
GetPlayerPos(playerid,tempx,tempy,tempz);
if(tempz<z2)
{
SetPlayerPos(playerid,x2,y2,z2);
return 1;
}
else if(tempz>=z2)
{
KillTimer(MINZCHECK(playerid));
}
return 1;
}
Floats: x2, x, y, z, angle, tempx, tempy, tempz Integer: y2, z2, angle2
//top
new Float:x2,Float:y2,Float:z2,Float:angle2;
forward MINZCHECK(playerid);
stock EnsurePlayerSpawn(playerid,Float:x,Float:y,Float:z,Float:angle)
{
SetPlayerPos(playerid,x2,y2,z2);
SetPlayerFacingAngle(playerid,angle2);
SetTimer("MINZCHECK", 1500, 1);
}
public MINZCHECK(playerid)
{
new Float:tempx,tempy,tempz;
GetPlayerPos(playerid,tempx,tempy,tempz);
if(tempz<z2)
{
SetPlayerPos(playerid,x2,y2,z2);
return 1;
}
else if(tempz>=z2)
{
KillTimer(MINZCHECK(playerid));
}
return 1;
}
Originally Posted by $ЂЯĢ
And it's SetPlayerFactionAngle not SetplayerFacingAngle.
|