Problem with KrLozZ's Vehicle System.

Started by Groovy, Apr 14, 2020, 05:32 PM

Previous topic - Next topic

Groovy

Ok, it got fixed. bro but the whole vehicle system is bugged i tried every command every command had a bug :( i fixed 7-8 bugs.

but some bugs i can't fix so im asking for help here...

else if ( (cmd == "carforsale") || (cmd == "carsforsale") )
{
local V2="";
local V=false;
for( local VehicleID = 0; VehicleID <= 1000; VehicleID++ )
{
local q = QuerySQL( Vehicles, "SELECT * FROM Sale WHERE ID='"+VehicleID+"'" );
local owner = GetSQLColumnData( q, 2 );
if("Unowned" == owner)
{
V=true;
V2+=""+VehicleID+",";
}
}
if (V==true) MessagePlayer("Vehicles ID: "+V2+"",player)
if (V==false) MessagePlayer( "No cars for sale.", player );
}


 :'( :-\ :-X :-[ :( >:(

habi

#16
else if ( (cmd == "carforsale") || (cmd == "carsforsale") )
{
local V2="";
local V=false;
for( local VehicleID = 0; VehicleID <= 1000; VehicleID++ )
{
local q = QuerySQL( Vehicles, "SELECT * FROM Sale WHERE ID="+VehicleID);
if( !q )continue;
local owner = GetSQLColumnData( q, 2 );
if("Unowned" == owner)
{
V=true;
V2+=""+VehicleID+",";
}
}
if (V==true) MessagePlayer("Vehicles ID: "+V2+"",player)
if (V==false) MessagePlayer( "No cars for sale.", player );
}
Note,  Sale WHERE ID="+VehicleID);

Groovy

@habi thanks for your help, i understood the logic xD. ;D

I suggest you to make new vehicle system because the last vehicle system is bugged.
Thanks 8)