SA-MP Forums Archive
[Help] Car id's - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Car id's (/showthread.php?tid=74846)



[Help] Car id's - insider1 - 26.04.2009

I wan't to create multiple cars..
pawn Код:
car[1]= CreateVe...
car[2]= CreateVe...
car[3]= CreateVe...
Than function that checks if car player enterd is Car[1...]

pawn Код:
public IsSomeCar(carid)
{
    for(new i=0; i<3; i++)
    {
        if(carid == car[i] )
        {
            return 1;
        }
        return 0;
    }
}
It doesn't work for me... And YES I searched the forum.


Re: [Help] Car id's - Backwardsman97 - 26.04.2009

pawn Код:
public IsSomeCar(carid)
{
    for(new i=1; i<3; i++)
    {
        if(carid == car[i] )
        {
            return 1;
        }
    }
    return 0;
}
Try that.


Re: [Help] Car id's - Darekfred - 08.10.2009

For all the car id's you need just go to
http://www.gtavision.com/index.php?s...ntent&site=122
I found that when i needed and hunter id have fun.