Command Not Working Correctly
#7

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/opene69", cmdtext, true, 8) == 0) // You had "10" showing instead of "8". The number 8=How long the command is with the "/"
    {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, -1523.627808, 481.981415, 6.207134))
        {
        MoveObject(Agate, -1535.559692, 481.989716, 6.179688, 2.00);
        SendClientMessage(playerid, COLOR_RED, "Gate Opened Automaticly");
        }
        return 1;
        }
       
    if (strcmp("/closee69", cmdtext, true, 9) == 0) // You had "10" showing instead of "9". The number 9=How long the command is with the "/"
        {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, -1523.627808, 481.981415, 6.207134))
        {
        MoveObject(Agate, -1523.627808, 481.981415, 6.207134, 2.00);
        SendClientMessage(playerid, COLOR_RED, "Gate Closed Automaticly");
        }
        return 1;
        }
    return 1;
    }
Reply


Messages In This Thread
Command Not Working Correctly - by laserhel50 - 18.11.2009, 21:04
Re: Command Not Working Correctly - by LarzI - 18.11.2009, 21:36
Re: Command Not Working Correctly - by agusfn20 - 18.11.2009, 21:41
Re: Command Not Working Correctly - by laserhel50 - 18.11.2009, 21:43
Re: Command Not Working Correctly - by laserhel50 - 18.11.2009, 21:53
Re: Command Not Working Correctly - by laserhel50 - 19.11.2009, 07:59
Re: Command Not Working Correctly - by [03]Garsino - 19.11.2009, 08:15

Forum Jump:


Users browsing this thread: 1 Guest(s)