what ive done wrong?
#2

pawn Код:
CMD:robsex(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, -107.1983,-8.3455,1000.7188))
    {
        SetTimer("rob", 10000, false);
        SendClientMessage(playerid, -1, "stay in the checkpoint for 30 secs to rob it!");
        return 1;
    {
    else
    }
        SendClientMessage(playerid, -1, "your not in checkpoint!");
        return 0;
    }
    return 1;
}
you missed the opening bracket in your if statement

indenting the code properly helps to identify this right away
Reply


Messages In This Thread
what ive done wrong? - by thefatshizms - 12.06.2012, 18:52
Re: what ive done wrong? - by Jonny5 - 12.06.2012, 18:55
Re: what ive done wrong? - by thefatshizms - 12.06.2012, 19:02
Re: what ive done wrong? - by Stevee - 12.06.2012, 19:05
Re: what ive done wrong? - by Elysian` - 12.06.2012, 19:10
Re: what ive done wrong? - by Jonny5 - 12.06.2012, 19:13
Re: what ive done wrong? - by kaisersouse - 12.06.2012, 19:19
Re: what ive done wrong? - by thefatshizms - 12.06.2012, 19:20
Re: what ive done wrong? - by iggy1 - 12.06.2012, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)