15.08.2012, 01:27
I had accidentally deleted that whilst typing it up along with other mistakes from the script.
The objects do not appear to move whatsoever.
pawn Код:
command(fbgate, gate, playerid, params[])
{
if(sscanf(params, "d", gate))
{
SendClientMessage(playerid, WHITE, "SYNTAX: /fbgate [1-3]");
}
else
{
switch(gate)
{
case 1:
{
if(fbgatestatus1 == 0)
{
MoveDynamicObject(fbgate1, -2287.6787, -2759.3147, 45.5280, 3.0);
fbgatestatus1 = 1;
}
else
{
MoveDynamicObject(fbgate1, -2287.13989258,-2758.28002930,43.79999924, 3.0);
fbgatestatus1 = 0;
}
}
case 2:
{
//whatever
}
}
}
return 1;
}