Need help SendClientMessage
#5

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
pawn Код:
if(!strcmp(cmdtext, "/openhq", true))
{
    if(GetPlayerSkin(playerid) == 285) {
    SendClientMessage(playerid, COLOR_ORANGE, "INFO: you have closed the gate");
    if(IsPlayerInRangeOfPoint(playerid,10.0,244.0000000,72.5000000,1002.5999800))
    {
        MoveObject(hq,244.0000000,72.5000000,1002.5999800,2.0000000, 0.0, 0.0, 0.0);
        return 1;
    }
}
else return SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this command");
}

    if(!strcmp(cmdtext, "/closehq", true))
    {
        if(GetPlayerSkin(playerid) == 285) {
        SendClientMessage(playerid, COLOR_ORANGE, "INFO: you have closed the gate");
        if(IsPlayerInRangeOfPoint(playerid,10.0,245.3999900,72.5000000,1002.5999800))
        {
            MoveObject(hq,245.3999900,72.5000000,1002.5999800,2.0000000, 0.0, 0.0, 0.0);
            return 1;
        }
    }  
else return SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this command");
}
You forgot to close the brackets. <3
Reply


Messages In This Thread
Need help SendClientMessage - by canip - 13.04.2013, 20:24
Re: Need help SendClientMessage - by Frede - 13.04.2013, 20:30
Re: Need help SendClientMessage - by canip - 13.04.2013, 20:32
Re: Need help SendClientMessage - by [XST]O_x - 13.04.2013, 20:35
Re: Need help SendClientMessage - by Isolated - 13.04.2013, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)