Author Topic: Help in !car for sansan v3  (Read 6300 times)

0 Members and 1 Guest are viewing this topic.

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Help in !car for sansan v3
« on: August 31, 2008, 11:21:53 pm »
hello,
         sorry, but need help in this script...

Quote
Price:$chr(91) $ $+  $vcmp.carsprices($vcmp.hgetcarid(%id)) $chr(93) Car Health: $chr(91) $round($calc($vcmp.hgetcarhp(%p) / 10),2) $+ % $chr(93) Car Speed : $chr(91) $vcar.getspeed($1) - $vcar.getacc($1) - $vcar.getmass($1) $chr(93)

   
this is the full script:


Quote
!return $vcmp.name($vcmp.getid($1)) $1 - Vehicle Status: Model: $chr(91) $vcmp.carname($3) $chr(93) ID: $chr(91) $2 $chr(93) Price:$chr(91) $ $+  $vcmp.carsprices($vcmp.hgetcarid(%id)) $chr(93)  Car Health: $chr(91) $round($calc($vcmp.hgetcarhp(%p) / 10),2) $+ % $chr(93) Car Speed : $chr(91) $vcar.getspeed($1) - $vcar.getacc($1) - $vcar.getmass($1) $chr(93)

said:

Code: [Select]
<&ArgentinaSpoon> ** Shadow - Vehicle Status: Model: [ PCJ-600 ] ID: [ 89 ] Price: [ $ ] Car Health: [ 0% ] Car Speed : [ - - ]

Price, Car Health and Car Speed not working...

Please help in this script....

   
greetings,
Cristian, Alias: Cristian_08                 
« Last Edit: August 31, 2008, 11:31:47 pm by Cristian »


Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Help in !car for sansan v3
« Reply #1 on: September 01, 2008, 03:37:25 pm »
try:
Code: [Select]
Price:$chr(91) $ $+  $vcmp.carsprices($2) $chr(93) Car Health: $chr(91) $round($calc($vcmp.hgetcarhp($2) / 10),2) $+ % $chr(93) Car Speed : $chr(91) $vcar.getspeed($2) - $vcar.getacc($2) - $vcar.getmass($2) $chr(93)

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: Help in !car for sansan v3
« Reply #2 on: September 03, 2008, 09:57:21 pm »
failed prices, car health and car speed,

and what I flaw in the game also is price, this is my file of vcmp.cars

Code: [Select]
[PRICES]
1=150000
2=150000
3=150000
4=150000
5=150000
6=150000
7=150000
8=150000
9=200000
10=120000
11=120000
12=220000
13=190000
14=190000
15=100000
16=100000
17=100000
18=100000
19=100000
20=120000
....

And owners failed

Code: [Select]
[OWNERS]
1=Sunshine Autos
2=Sunshine Autos
3=Sunshine Autos
4=Sunshine Autos
5=Sunshine Autos
6=Sunshine Autos
7=Sunshine Autos
8=Sunshine Autos
9=Sunshine Autos
10=Sunshine Autos
11=Sunshine Autos
12=Sunshine Autos
13=Sunshine Autos
14=Sunshine Autos
15=Sunshine Autos
.....

help!


Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Help in !car for sansan v3
« Reply #3 on: September 03, 2008, 11:08:04 pm »
try something like:
Code: [Select]
alias vcmp.carprices !return $readini(vcmp.cars.ini,OWNERS,$1)
alias vcmp.costcar !return $readini(vcmp.cars.ini,PRICES,$1)
Command !car:
Code: [Select]
!return $vcmp.name($vcmp.getid($1)) $1 - Vehicle Status: Model: $chr(91) $vcmp.carname($3) $chr(93) ID: $chr(91) $2 $chr(93) Price:$chr(91) $ $+  $vcmp.carsprices($vcmp.hgetcarid(%id)) $chr(93)  Car Health: $chr(91) $round($calc($vcmp.hgetcarhp(%id) / 10),2) $+ % $chr(93) Car Speed : $chr(91) $vcar.getspeed($3) - $vcar.getacc($3) - $vcar.getmass($3) $chr(93)
NOTE: UNTESTED

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: Help in !car for sansan v3
« Reply #4 on: September 04, 2008, 12:45:16 am »
where it is placed:

Code: [Select]
alias vcmp.carprices !return $readini(vcmp.cars.ini,OWNERS,$1)
alias vcmp.costcar !return $readini(vcmp.cars.ini,PRICES,$1)


Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Help in !car for sansan v3
« Reply #5 on: September 04, 2008, 05:37:00 pm »
Just put it were the other aliasses are ;)

szostol

  • Guest
Re: Help in !car for sansan v3
« Reply #6 on: September 04, 2008, 06:04:10 pm »
It's my version for gus, wich show:

If car is bought and shared: name id owner sharer

If car is bought and not shared: name id owner

If car isn't bought: name id owner (for sale) price

Code: [Select]
   elseif ($2 == !car) {
    if ($vcmp.cmdcheck(!car,%id) == fail) !halt   
    elseif (%a == -1) vcmp.msg %id  Absent ID/Name
    elseif ($vcmp.vehicle(%a,id) == 0) vcmp.msg %id  $vcmp.name(%a) is currently on foot!
    elseif ($vcmp.carowner($vcmp.vehicle(%a,id)) == For Sale) vcmp.msg %id Name: $+($chr(91),$vcmp.carname($vcmp.vehicle(%a,id)),$chr(93)) ID: $+($chr(91),$vcmp.vehicle(%a,id),$chr(93))  Price: $+($chr(91),$vcmp.vehiclecost($vcmp.vehicle(%a,id)),$chr(93))
    elseif ($vcmp.carsharer($vcmp.vehicle(%a,id)) != None) vcmp.msg %id Name: $+($chr(91),$vcmp.carname($vcmp.vehicle(%a,id)),$chr(93)) ID: $+($chr(91),$vcmp.vehicle(%a,id),$chr(93)) Owner: $+($chr(91),$vcmp.carowner($vcmp.vehicle(%a,id)),$chr(93)) Shared: $+($chr(91),$vcmp.carsharer($vcmp.vehicle(%a,id)),$chr(93))
    elseif ($vcmp.carowner($vcmp.vehicle(%a,id)) != For Sale) vcmp.msg %id Name: $+($chr(91),$vcmp.carname($vcmp.vehicle(%a,id)),$chr(93)) ID: $+($chr(91),$vcmp.vehicle(%a,id),$chr(93)) Owner: $+($chr(91),$vcmp.carowner($vcmp.vehicle(%a,id)),$chr(93))
    else {
    vcmp.msg %id Car Info
   }
 }

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Help in !car for sansan v3
« Reply #7 on: September 04, 2008, 07:33:44 pm »
USe this one

Code: [Select]
elseif ($2 == !car) {
      var %p = $iif($3,$v1,%id)
      if ( $vcmp.hgetcarid(%id) = 0 ) {
        vcmp.adminmsg %id You are Currently on Foot
        !halt
    }
      elseif ($vcmp.nameid(%p) != $null) vcmp.adminmsg %id Vehicle Status: Model:[ $vcmp.carsnames($vcmp.hgetcarid(%id)) ] ID:[ $vcmp.carsids($vcmp.hgetcarid(%id)) ] 
      vcmp.adminmsg %id Owner:[ $vcmp.carsowners($vcmp.hgetcarid(%id)) ] Price:[ $ $+  $vcmp.carsprices($vcmp.hgetcarid(%id)) ] Share:[ $vcmp.carsshares($vcmp.hgetcarid(%id)) ]
      else vcmp.adminmsg %id Error: Invalid ID.
    }
vcmp.adminmsg %id Car Health: $chr(91) $round($calc(100 - ($vcmp.hgetcarhp(%p) / 10)),2) $+ % $chr(93)
!halt
}
;D

Note untested:
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Help in !car for sansan v3
« Reply #8 on: September 04, 2008, 07:37:39 pm »
[PRICES]
1=75000
2=75000
3=75000
4=75000
5=75000
6=75000
7=75000
8=75000
9=1500000
10=300000
11=1200000
12= etc etc

Use this while puting the car prices
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Help in !car for sansan v3
« Reply #9 on: September 05, 2008, 06:05:58 pm »
If it works tell me frequentlyyyyyyyy 8)
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

szostol

  • Guest
Re: Help in !car for sansan v3
« Reply #10 on: September 05, 2008, 06:12:18 pm »
Omg... lazy sucker.... go to other forum man... test it your self fuckin idiot. You do nothing yourself, I don't know what think rest of users but I have you too much. And stop using fuckin text: Thanks Punjabi_goli, everyone knows taht is you because a) you're idiot b) you have your nickname next to your post.

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: Help in !car for sansan v3
« Reply #11 on: September 06, 2008, 01:56:43 am »
Just put it were the other aliasses are ;)

:S


Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Help in !car for sansan v3
« Reply #12 on: September 06, 2008, 02:52:32 am »
Szostol, Cool down man...


Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: Help in !car for sansan v3
« Reply #13 on: September 07, 2008, 02:31:06 pm »
solved all, the mistake was mine

   
Sorry for the inconvenience