• Welcome to Vice City Multiplayer.
 

Help in !car for sansan v3

Started by Cristian, August 31, 2008, 10:21:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cristian

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:


<&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                 


thijn

try:

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)


Cristian

failed prices, car health and car speed,

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


[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


[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!


thijn

try something like:

alias vcmp.carprices !return $readini(vcmp.cars.ini,OWNERS,$1)
alias vcmp.costcar !return $readini(vcmp.cars.ini,PRICES,$1)

Command !car:

!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


Cristian

where it is placed:


alias vcmp.carprices !return $readini(vcmp.cars.ini,OWNERS,$1)
alias vcmp.costcar !return $readini(vcmp.cars.ini,PRICES,$1)


thijn

Just put it were the other aliasses are ;)


szostol

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

   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
   }
}

Punjabi

USe this one

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..>>

Punjabi

[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..>>

Punjabi

If it works tell me frequentlyyyyyyyy 8)
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

szostol

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.

Cristian



Mattz


Cristian

solved all, the mistake was mine

   
Sorry for the inconvenience