Object Move gate warning 202 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Object Move gate warning 202 (
/showthread.php?tid=659094)
Object Move gate warning 202 -
skiplovebra - 23.09.2018
Код:
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;
Re: Object Move gate warning 202 -
Florin48 - 23.09.2018
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
Re: Object Move gate warning 202 -
TheToretto - 23.09.2018
Replace your existing line with this one:
PHP код:
MoveObject(Gate, 1400.000000, 1554.684082, 12.430313, 1.0, 0.000000, 90.000000, 300.00);