SA-MP Forums Archive
Car engine problem - 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: Car engine problem (/showthread.php?tid=206276)



Car engine problem - Arcanize - 03.01.2011

Hey, I have new problem.

So:

I wanna start MY car engine, but it wont start.

Code:
	else if( pStats[pid][pPcarkey] )
	{
	    if( CarInfo[vid][cOwner] == pStats[pid][pSQLid] ) return true;
	}
Does anybody know whatдs wrong with this?


Re: Car engine problem - Toreno - 03.01.2011

If he owns the car it returns that, you are stopping him from keeping on.
Try this:
pawn Code:
else if(pStats[pid][pPcarkey] )
    {
        if(CarInfo[vid][cOwner] == pStats[pid][pSQLid])
        {
            /* Here you need to put the engine system of yours. */
        }
    }



Re: Car engine problem - Arcanize - 03.01.2011

I will try this, thanks


Re: Car engine problem - Arcanize - 03.01.2011

Still nothing.

I have to start my engine but it's says: You don't have keys for this vehicle.