Need help with this!!!
#9

Your brackets are out of place, look at the fixed syntax:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3, 1553.3136,-1675.7379,16.1953))
        {
            SetPlayerPos(playerid, 246.40,110.84,1003.22);
            SetPlayerInterior(playerid, 111);
        }
        return 1;
    }

    if (strcmp("/exit", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3, 1553.3136,-1675.7379,16.1953))
        {
            SetPlayerPos(playerid, 246.40,110.84,1003.22);
            SetPlayerInterior(playerid, 111);
        }
        return 1;
    }
    return 0;
}
It's also much easier to understand/read when it's indented properly. Additionally are you sure that's the right interior ID? I don't think I've heard of an interior with the ID of 111.
Reply


Messages In This Thread
Need help with this!!! - by Notorious29 - 03.03.2011, 13:23
Re: Need help with this!!! - by Stigg - 03.03.2011, 13:25
Re: Need help with this!!! - by JaTochNietDan - 03.03.2011, 13:26
[No subject] - by Notorious29 - 03.03.2011, 13:29
Re: Need help with this!!! - by JaTochNietDan - 03.03.2011, 13:36
Re: Need help with this!!! - by Notorious29 - 03.03.2011, 13:39
Re: Need help with this!!! - by JaTochNietDan - 03.03.2011, 13:41
Re: Need help with this!!! - by Notorious29 - 03.03.2011, 13:44
Re: Need help with this!!! - by JaTochNietDan - 03.03.2011, 13:48
[No subject] - by Notorious29 - 03.03.2011, 13:48

Forum Jump:


Users browsing this thread: 1 Guest(s)