06.06.2018, 12:54
pretty sure that little semicolon's not supposed to be there..
Код:
CMD:gateopen(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
if (IsPlayerInRangeOfPoint(playerid,50,996.8564453125 , -2112.1943359375, 12.09375))
{
MoveDynamicObject(h2kgate1,993.50140380859, -2111.6450195313, 6.09375, 1.5);
MoveDynamicObject(h2kgate2,996.8564453125, -2112.1943359375, 6.09375, 1.5);
SetTimer("GateClose2", 6000, 0);
SendClientMessage(playerid, TEAM_AZTECAS_COLOR,"* The gate is opened and will close in 6 seconds.");
GetPlayerName(playerid, sendername, sizeof(sendername));
new string[ 128 ];
format(string, sizeof(string), "* %s takes his/her remote and opens the gate.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_RED,"* Destination is too far.");
}
}
}
public GateClose2(playerid) <------ Problem is here Line 17103 !
{
MoveDynamicObject(h2kgate1,993.50140380859, -2111.6450195313, 12.09375, 1.5);
MoveDynamicObject(h2kgate2,996.8564453125, -2112.1943359375, 12.09375, 1.5);
return 1;
}

