16.10.2009, 01:10
I keep getting...
I'm making a thing that gets a players position 1.5 seconds after he is set somewhere. If it is below the required z coordinate then he keeps getting reset to the required z coord. This is so if objects don't load he will keep respawning until they load. Here is wut I have...
Код:
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; }