Getcar bugged!!!

Started by Buddy, Jan 23, 2016, 10:12 AM

Previous topic - Next topic

Buddy

guys see my getcar command given below. Whenever i on my server and use command /getcar   my server get shut dwon why!!!!!!  >:( >:( >:( >:( >:( >:( >:(
else if ( cmd == "getcar" )
{
    local q = QuerySQL( db, "SELECT * FROM Cars WHERE rowid LIKE '" + text + "'" );
local id = player.ID
if ( !player.IsSpawned ) MessagePlayer( "[Error] - You haven't spawned yet..", player );
else if ( !text ) MessagePlayer( "[Syntax] - !" + cmd + " <ID>", player );
else if ( !IsNum( text ) ) MessagePlayer( "[Error] - ID Must be Numbers..", player );
else
{
    local veh = FindVehicle( text.tointeger() );
if ( veh.ID > GetVehicleCount() ) MessagePlayer( "[Error] - Invalid Vehicle ID.", player );
else if ( !IsOwnerOrSharer( veh, player ) ) MessagePlayer( "[Error] - You do not own this Vehicle.", player );
else
{
    Message( "Taking Vehicle:[ " + GetVehicleNameFromModel( veh.Model ) + " ] to:[ " + player.Name + " ]" );
veh.Pos = Vector( player.Pos.x + 6, player.Pos.y, player.Pos.z - 1 );
                    veh.Angle = player.Angle;
}
}
}

Please solve it as early you can please!!!!!

Buddy

Xmair

veh.Angle = player.Angleto
veh.EulerAngle = player.AngleUntested.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Buddy

#2
Quote from: Xmair on Jan 23, 2016, 10:19 AMveh.Angle = player.Angleto
veh.EulerAngle = player.AngleUntested.
not working :(
Buddy

Buddy

solved i made it with the help of myself.
Buddy