20.07.2012, 22:17
So, i train my low scripting skills on one of Raven's Gamemodes, i tryed create movable gates for Yamaguchi mafia and get failed..
All compiles without Errors and Warnings, BUT when i go in server and try my new gates, noone command works... i type /opengate /go /help /stats /s ALL and it says ''SERVER: Unknown Command'' wtf? what i do wrong with this code? i cant understand this ; ( p.s when i delete that code then all cmds works again..
Код:
else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
if (IsPlayerInRangeOfPoint(playerid, 15,785.09997558594,-1152.4000244141,25.299999237061))
{
if(yamag == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
MoveDynamicObject(yamaguchigates1,785.40002441406, -1162.9000244141, 25.39999961853, 3.5);
SetTimer("GateCloseYama", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"The Yamaguchi gate Nr. 1 is opened and will close in 7 seconds.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens the Yamaguchi gates #1.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
yamag = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* Not near a Gate that you can use.");
return 1;
}
}

