SA-MP Forums Archive
[HELP] Named vehicles - 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] Named vehicles (/showthread.php?tid=155551)



[HELP] Named vehicles - WThieves - 19.06.2010

Hi there i have a problem, i've got this
pawn Код:
if (PlayerInfo[playerid][pCar] == 496)
        {
        new Float:x,Float:y,Float:z,Float:xrot;
        GetPlayerPos(playerid,Float:x,Float:y,Float:z);
            GetPlayerFacingAngle(playerid,Float:xrot);
          aaa = CreateVehicle(496,x+4,y,z,xrot,-1,-1,30);
        }
but now i want to "If" the vehicle like this
pawn Код:
if(vehicle==aaa)
But how do i do that??