16.12.2013, 17:48
I'm making a vehicle selling system..
But there's pretty much job to write down every vehicle I have..
(Not that many one yet) But still pretty much job.
So are there any faster/smarter way??.. Not to hard one..
I have thought something like this, so far..
I need to check which car it is so I can have different price on them.
But I'm got a error code when I tired with that GetVehicleModel function..
While testing the code..
Edit: Don't post a whole script just some example..
But there's pretty much job to write down every vehicle I have..
(Not that many one yet) But still pretty much job.
So are there any faster/smarter way??.. Not to hard one..
I have thought something like this, so far..
pawn Код:
else if(checkpointid == SellVeh)
{
if(GetVehicleModel(vehicleid) == 411)
{
SendClientMessage(playerid, Red, "Test");
}
}
return 1;
}
I need to check which car it is so I can have different price on them.
But I'm got a error code when I tired with that GetVehicleModel function..
While testing the code..
Код:
D:\Davids\Scripting\Server Las Venturas\LV.pwn(1699) : error 017: undefined symbol "vehicleid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.