14.11.2013, 15:44
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_SECONDARY_ATTACK)
{
//Ospedale
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1172.3464, -1325.3149, 15.3742))
SetPlayerPos(playerid, 1173.0300, -1303.9200, 9280.5996);
SetCameraBehindPlayer(playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1173.0300, -1303.9200, 9280.5996))
SetPlayerPos(playerid, 1172.3464, -1325.3149, 15.3742);
SetCameraBehindPlayer(playerid);
//Dipartimento di Polizia
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1555.4874, -1675.6508, 16.1669))
SetPlayerPos(playerid, 1560.3560, -1675.6050, 1.7149);
SetCameraBehindPlayer(playerid);
}
[963] else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1560.3560, -1675.6050, 1.7149))
SetPlayerPos(playerid, 1555.4874, -1675.6508, 16.1669);
SetCameraBehindPlayer(playerid);
[966] return 1;
}
(963) : error 010: invalid function or declaration
(966) : error 010: invalid function or declaration
{
if (newkeys & KEY_SECONDARY_ATTACK)
{
//Ospedale
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1172.3464, -1325.3149, 15.3742))
SetPlayerPos(playerid, 1173.0300, -1303.9200, 9280.5996);
SetCameraBehindPlayer(playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1173.0300, -1303.9200, 9280.5996))
SetPlayerPos(playerid, 1172.3464, -1325.3149, 15.3742);
SetCameraBehindPlayer(playerid);
//Dipartimento di Polizia
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1555.4874, -1675.6508, 16.1669))
SetPlayerPos(playerid, 1560.3560, -1675.6050, 1.7149);
SetCameraBehindPlayer(playerid);
}
[963] else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1560.3560, -1675.6050, 1.7149))
SetPlayerPos(playerid, 1555.4874, -1675.6508, 16.1669);
SetCameraBehindPlayer(playerid);
[966] return 1;
}
(963) : error 010: invalid function or declaration
(966) : error 010: invalid function or declaration