Object Move gate warning 202
#1

Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
	if(newkeys == KEY_FIRE && IsPlayerInRangeOfPoint(playerid,1.5,1340.401855, 1554.684082, 12.430313))
	{
	    if(state1 == 0) { MoveObject(Gate,1400.000000, 1554.684082, 12.430313,1.0,0.000000, 0.000000, 90.000000, 300.00); state1 = 1;
		}
	    else
		{
		MoveObject(Gate,1340.401855, 1554.684082, 12.430313,1.0,0.000000, 0.000000, 90.000000, 300.00); state1 = 0;
		}
	}
	return 1;
}
Warning 202
Код:
if(state1 == 0) { MoveObject(Gate,1400.000000, 1554.684082, 12.430313,1.0,0.000000, 0.000000, 90.000000, 300.00); state1 = 1;
Код:
MoveObject(Gate,1340.401855, 1554.684082, 12.430313,1.0,0.000000, 0.000000, 90.000000, 300.00); state1 = 0;
Reply
#2

check the function parameters

your function: MoveObject(Gate, 1400.000000, 1554.684082, 12.430313, 1.0, 0.000000, 0.000000, 90.000000, 300.00);
default function: MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0)

you have 9 and function have 8
Reply
#3

Replace your existing line with this one:

PHP код:
MoveObject(Gate1400.0000001554.68408212.4303131.00.00000090.000000300.00); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)