06.02.2010, 13:39
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (HOLDING(KEY_CROUCH))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 213.8026,1876.0151,13.1406))
{
MoveObject(fronthqgate, 226.2012,1875.1792,13.8000, 2.00);
}
return 1;
}
if (RELEASED(KEY_CROUCH))
{
MoveObject(fronthqgate, 214.2012,1875.1792,13.8000, 2.00);
}
return 1;
}
if (HOLDING(KEY_SUBMISSION))
{
LinkVehicleToInterior(vehicleid, 1);
}
return 1;
}
if (RELEASED(KEY_SUBMISSION))
{
LinkVehicleToInterior(vehicleid, 0);
}
return 1;
}
i was copying the other 2 at the top (if (released)
yet it gives my errors
lol... wtf?
{
if (HOLDING(KEY_CROUCH))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 213.8026,1876.0151,13.1406))
{
MoveObject(fronthqgate, 226.2012,1875.1792,13.8000, 2.00);
}
return 1;
}
if (RELEASED(KEY_CROUCH))
{
MoveObject(fronthqgate, 214.2012,1875.1792,13.8000, 2.00);
}
return 1;
}
if (HOLDING(KEY_SUBMISSION))
{
LinkVehicleToInterior(vehicleid, 1);
}
return 1;
}
if (RELEASED(KEY_SUBMISSION))
{
LinkVehicleToInterior(vehicleid, 0);
}
return 1;
}
i was copying the other 2 at the top (if (released)
yet it gives my errors
lol... wtf?
Код:
C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFRB.pwn(5446) : error 010: invalid function or declaration C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFRB.pwn(5450) : error 010: invalid function or declaration C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFRB.pwn(5452) : error 010: invalid function or declaration C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFRB.pwn(5456) : error 010: invalid function or declaration