06.06.2018, 11:58
Either I'm stupid or I really do not see what problem is…
Have 1 error
Please Help Guys ( Thanks )
(17103) : error 029: invalid expression, assumed zero
//------------------------------Gates open-------------------------------------------
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;
}
}
Have 1 error
Please Help Guys ( Thanks )
(17103) : error 029: invalid expression, assumed zero
//------------------------------Gates open-------------------------------------------
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;
}
}