Help with a command.
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enterfd", cmdtext, true, 6) == 0)
            {
                if(IsPlayerInRangeOfPoint(playerid, 5.0, 1342.4213867188,-1669.3712158203,17.7265625))
                    {                             //^^^range
                        SetPlayerPos(playerid,1289.4602050781,-1604.3106689453,1242.7280273438);
                        return 1;
                    }

            }
        if (strcmp("/exitfd", cmdtext, true, 6) == 0)
            {
                if(IsPlayerInRangeOfPoint(playerid,5.0,1289.4602050781,-1604.3106689453,1242.7280273438))
                    {
                        SetPlayerPos(playerid,1342.4213867188,-1669.3712158203,17.7265625);
                        return 1;
                    }
            }
    return 0;
}
Missing closing brace and "IsPlayerInRangeOfPoint" has range parameter. Not touched the indentation. (incase you didn't notice lol)
Reply


Messages In This Thread
Help with a command. - by M3NK5 - 30.11.2010, 08:43
Re: Help with a command. - by ExEx - 30.11.2010, 08:46
Re: Help with a command. - by iggy1 - 30.11.2010, 08:47
Re: Help with a command. - by M3NK5 - 30.11.2010, 09:09
Re: Help with a command. - by iggy1 - 30.11.2010, 09:18
Re: Help with a command. - by Menkz - 30.11.2010, 23:17
Re: Help with a command. - by Steven82 - 01.12.2010, 00:28
Re: Help with a command. - by M3NK5 - 01.12.2010, 05:08

Forum Jump:


Users browsing this thread: 1 Guest(s)