Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Cristian on August 31, 2008, 11:21:53 pm

Title: Help in !car for sansan v3
Post by: Cristian 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                 
Title: Re: Help in !car for sansan v3
Post by: thijn 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)
Title: Re: Help in !car for sansan v3
Post by: Cristian 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!
Title: Re: Help in !car for sansan v3
Post by: thijn 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
Title: Re: Help in !car for sansan v3
Post by: Cristian 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)
Title: Re: Help in !car for sansan v3
Post by: thijn on September 04, 2008, 05:37:00 pm
Just put it were the other aliasses are ;)
Title: Re: Help in !car for sansan v3
Post by: szostol 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
   }
 }
Title: Re: Help in !car for sansan v3
Post by: Punjabi 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:
Title: Re: Help in !car for sansan v3
Post by: Punjabi 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
Title: Re: Help in !car for sansan v3
Post by: Punjabi on September 05, 2008, 06:05:58 pm
If it works tell me frequentlyyyyyyyy 8)
Title: Re: Help in !car for sansan v3
Post by: szostol 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.
Title: Re: Help in !car for sansan v3
Post by: Cristian on September 06, 2008, 01:56:43 am
Just put it were the other aliasses are ;)

:S
Title: Re: Help in !car for sansan v3
Post by: Mattz on September 06, 2008, 02:52:32 am
Szostol, Cool down man...
Title: Re: Help in !car for sansan v3
Post by: Cristian on September 07, 2008, 02:31:06 pm
solved all, the mistake was mine

   
Sorry for the inconvenience