« [0.4] Vote System
Vehicle System

dracc

  • Jr. Member
  • Posts: 84
Re: Vehicle System
« Reply #31,  »
Quote from Mahmut_T7 on June 18th, 01:05 PM
I need help.

https://imgur.com/7pM7oJm

When I add your commands in function they wont work I think there is problem in here
:

 local cmd = command.tolower();
 local cmd = text;
 cmd = command.tolower();
 text = arguments;
 local params;
The error lies within your changes to the code as I replied in the thread you created for this same problem.

Mahmut_T7

  • Newbie
  • Posts: 14
Re: Vehicle System
« Reply #32,  »
Quote from dracc on June 18th, 06:36 PM
Quote from Mahmut_T7 on June 18th, 01:05 PM
I need help.

https://imgur.com/7pM7oJm

When I add your commands in function they wont work I think there is problem in here
:

 local cmd = command.tolower();
 local cmd = text;
 cmd = command.tolower();
 text = arguments;
 local params;
The error lies within your changes to the code as I replied in the thread you created for this same problem.
Me again, sorry I need your help.When I buy a car my money still same.

Where at problem ?
https://imgur.com/lil1GS4
https://imgur.com/L6Prs1e
Böl ve yönet

AroliS^

  • Newbie
  • Learning of Mike Tyson K.O
  • Posts: 46
Re: Vehicle System
« Reply #33,  »Last edited
Quote from Mahmut_T7 on June 19th, 05:00 PM
Quote from dracc on June 18th, 06:36 PM
Quote from Mahmut_T7 on June 18th, 01:05 PM
I need help.

https://imgur.com/7pM7oJm

When I add your commands in function they wont work I think there is problem in here
:

 local cmd = command.tolower();
 local cmd = text;
 cmd = command.tolower();
 text = arguments;
 local params;
The error lies within your changes to the code as I replied in the thread you created for this same problem.
Me again, sorry I need your help.When I buy a car my money still same.

Where at problem ?
https://imgur.com/lil1GS4
https://imgur.com/L6Prs1e
Code: [Select]
/*
DecCash( player, Cost  );
*/
->
DecCash( player, Cost  );

i guess you already gave the DecCash function

dracc

  • Jr. Member
  • Posts: 84
Re: Vehicle System
« Reply #34,  »
Quote from Mahmut_T7 on June 19th, 05:00 PM
Quote from dracc on June 18th, 06:36 PM
Quote from Mahmut_T7 on June 18th, 01:05 PM
I need help.

https://imgur.com/7pM7oJm

When I add your commands in function they wont work I think there is problem in here
:

 local cmd = command.tolower();
 local cmd = text;
 cmd = command.tolower();
 text = arguments;
 local params;
The error lies within your changes to the code as I replied in the thread you created for this same problem.
Me again, sorry I need your help.When I buy a car my money still same.

Where at problem ?
https://imgur.com/lil1GS4
https://imgur.com/L6Prs1e
Are you seriously using comic sans for your scripting?
Re: Vehicle System
« Reply #35,  »
Quote from AroliS^ on June 19th, 05:59 PM
Quote from Mahmut_T7 on June 19th, 05:00 PM
Quote from dracc on June 18th, 06:36 PM
Quote from Mahmut_T7 on June 18th, 01:05 PM
I need help.

https://imgur.com/7pM7oJm

When I add your commands in function they wont work I think there is problem in here
:

 local cmd = command.tolower();
 local cmd = text;
 cmd = command.tolower();
 text = arguments;
 local params;
The error lies within your changes to the code as I replied in the thread you created for this same problem.
Me again, sorry I need your help.When I buy a car my money still same.

Where at problem ?
https://imgur.com/lil1GS4
https://imgur.com/L6Prs1e
Code: [Select]
/*
IncCash( player, Cost  );
*/
->
IncCash( player, Cost  );

i guess you already gave the IncCash function
Looks like you're right, except for the mis-quotation. It's "DecCash(...".

lambada7

  • Newbie
  • Posts: 7
Re: Vehicle System
« Reply #36,  »
Quote from KrooB on December 7th, 2018, 01:27 PM
Code: [Select]
else if (cmd=="aracekle")
{
if ( stats[ player.ID ].Reg == false ) return MessagePlayer( "[#E0E0E0]kayit olmaniz gerek.", player );
else if ( stats[ player.ID ].Log == false ) return MessagePlayer( "[#E0E0E0]giris yapmaniz gerek", player );
if ( player.Name == "KrOoB" )   

if ( player.Vehicle ) MessagePlayer("[#E0E0E0]Aractan inmek zorundasin", player );
if ( !player.IsSpawned ) MessagePlayer("[#E0E0E0]Dogman gerek!", player );
else if( !text ) MessagePlayer("[#E0E0E0]Kod /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID> <World> <Price>", player);
else {
local TextSplit = split( text, " " ),ModelID=TextSplit[ 0 ],ColID1=TextSplit[ 1 ],ColID2=TextSplit[ 2 ],WorldID=TextSplit[ 3 ],Price=TextSplit[ 4 ];
if (!IsNum(ModelID)) MessagePlayer("[#E0E0E0]Kod /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID> <World> <Price>.", player);
else if ( !IsNum(ColID1)) MessagePlayer("[#E0E0E0]Kod /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID> <World> <Price>", player);
else if ( !IsNum(ColID2)) MessagePlayer("[#E0E0E0]Kod /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID> <World> <Price>", player);
else if ( !IsNum(WorldID)) MessagePlayer("[#E0E0E0]Kod /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID> <World> <Price>", player);
else if ( !IsNum(Price)) MessagePlayer("[#E0E0E0]Kod /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID> <World> <Price>", player);
else if ( !Price ) MessagePlayer("[#E0E0E0]Kod /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID> <World> <Price>", player);
else if ((ModelID.tointeger() < 130) ) MessagePlayer ( "[#E0E0E0]ID 13'den buyuk olmali" , player );
else if ((ModelID.tointeger() == 180))MessagePlayer ("[#E0E0E0]Bu ID arac icin degil" , player );
else if ((ModelID.tointeger() == 181))MessagePlayer ("[#E0E0E0]Bu ID arac icin degil" , player );
else if ((ModelID.tointeger() == 165))MessagePlayer ("[#E0E0E0]Bu ID arac icin degil" , player );
else {
local VehicleID=GetVehicleCount();
VehicleID+=1;
QuerySQL( Vehicles, "INSERT INTO Creation ( id, model, x, y, z, col1, col2, world, angle ) VALUES ( '"+VehicleID+"', '"+ModelID+"', '"+player.Pos.x+"', '"+player.Pos.y+"', '"+player.Pos.z+"', '"+ColID1+"', '"+ColID2+"', '"+WorldID+"', '"+player.Angle+"' )" );
QuerySQL( Vehicles, "INSERT INTO Sale ( ID, Cost, Owner, Shared, Shared2 ) VALUES ( '"+VehicleID+"', '"+Price+"', 'Sahibi satiliga cikardi', 'None', 'None' )" );
CreateVehicle(ModelID.tointeger(),WorldID.tointeger(),player.Pos, player.Angle,ColID1.tointeger(),ColID2.tointeger());
Message( "[#E0E0E0]Yetkili ["+player.Name+"] yeni arac ekledi, ID: "+VehicleID+"" );
player.Pos.z +6;
     }
     }
}

Dene bunu olmalı

Try this
Olmadı....happened....
Hala Aynı!
Still same!


Mahmut_T7

  • Newbie
  • Posts: 14
Re: Vehicle System
« Reply #37,  »
Quote from AroliS^ on June 19th, 05:59 PM
Quote from Mahmut_T7 on June 19th, 05:00 PM
Quote from dracc on June 18th, 06:36 PM
Quote from Mahmut_T7 on June 18th, 01:05 PM
I need help.

https://imgur.com/7pM7oJm

When I add your commands in function they wont work I think there is problem in here
:

 local cmd = command.tolower();
 local cmd = text;
 cmd = command.tolower();
 text = arguments;
 local params;
The error lies within your changes to the code as I replied in the thread you created for this same problem.
Me again, sorry I need your help.When I buy a car my money still same.

Where at problem ?
https://imgur.com/lil1GS4
https://imgur.com/L6Prs1e
Code: [Select]
/*
DecCash( player, Cost  );
*/
->
DecCash( player, Cost  );

i guess you already gave the IncCash function
Thanks !
Re: Vehicle System
« Reply #38,  »
Quote from dracc on June 19th, 06:07 PM
Quote from Mahmut_T7 on June 19th, 05:00 PM
Quote from dracc on June 18th, 06:36 PM
Quote from Mahmut_T7 on June 18th, 01:05 PM
I need help.

https://imgur.com/7pM7oJm

When I add your commands in function they wont work I think there is problem in here
:

 local cmd = command.tolower();
 local cmd = text;
 cmd = command.tolower();
 text = arguments;
 local params;
The error lies within your changes to the code as I replied in the thread you created for this same problem.
Me again, sorry I need your help.When I buy a car my money still same.

Where at problem ?
https://imgur.com/lil1GS4
https://imgur.com/L6Prs1e
Are you seriously using comic sans for your scripting?
No Im using notepad ++ but I opened with that for taking screenshoot easier ;D
Böl ve yönet

KrooB

  • Full Member
  • BEN TÜRKÜM
  • Posts: 117
Re: Vehicle System
« Reply #39,  »
u didn't look at this script thoroughly, did u ?
We are his people !
Who can challange us ?

« [0.4] Vote System