Tag mismatch
#6

This looks fairly good: https://sampwiki.blast.hk/wiki/Scripting_Basics#Arrays
However your function can be rewritten a little diffrently:

pawn Код:
CMD:open(playerid, params[])
{
    new Float:d[6];
    for(new i = 0; i != 6; ++i) {
        GetObjectPos(gate[i],d[0],d[1],d[2]);
        if(IsPlayerInRangeOfPoint(playerid, 5.0, d[0],d[1],d[2]))
        {
            MoveObject(gate[i],d[0],d[1],0,5.0,d[3],d[4],d[5]);
            break;
        }
    }
    return 1;
}
Note: your gates have to be in array (so instead gate1 -> gate[0])
Reply


Messages In This Thread
Tag mismatch - by BigGroter - 24.03.2013, 12:52
Re: Tag mismatch - by IstuntmanI - 24.03.2013, 13:06
Re: Tag mismatch - by BigGroter - 24.03.2013, 13:06
Re: Tag mismatch - by Misiur - 24.03.2013, 13:06
Re: Tag mismatch - by BigGroter - 24.03.2013, 13:08
Re: Tag mismatch - by Misiur - 24.03.2013, 13:21

Forum Jump:


Users browsing this thread: 2 Guest(s)