#1

Код:
C:\Documents and Settings\LoL\Desktop\lsrcnr\gamemodes\lsrcnr.pwn(8451) : error 035: argument type mismatch (argument 2)
Код:
	if (PRESSED(KEY_SECONDARY_ATTACK))
	{
	new Float:x,Float:y,Float:z;
	GetPlayerPos(playerid,x,y,z);
	if(x >= 1020.1973 && x <= 1042.5262 && y >= -2346.8450 && y <= -2326.6799 && gTeam[playerid] == TEAM_ARMY)
	{
	    if(GetObjectPos(lift,1024.61, -2345.58, 11.60))   // this is error line 		{
			MoveObject(lift,1024.61, -2345.58, 18.60);
	    }
		return 1;
	}

}
return 1;
}
Reply
#2

GetObjectPos needs 3 float variables to store the location, just like GetPlayerPos.
Use GetObjectPos(objectid, x, y, z); and then if(x == ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)