• Welcome to Vice City Multiplayer.
 

A Problem

Started by Usaji, January 16, 2010, 01:53:49 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Usaji

Hey Guys,

I Downloaded the latest R2 server and connected the scripts( Vrocker's Vc-Mp Mirc admin ) on it, later on I realized that when ever I hit somthing while in car, my hp goes down with the car AND when I go out of the car and get in another new car ( Scratchless ), My hp goes back to 100..

Note: I tried without scripts and nothing happens, so is it a bug from vrocker's script? or what?

Any Help Would be appreciated

Sincerely,

Usaji

Force

This bug was mentioned at an earlier date and it did turn out to be something to do with scripts, no idea whether anyone knows why it happens though.

Usaji

ah, I Fixed it today, while looking at the scripts I found this..

on *:SIGNAL:vcmp.vehicle.healthchange:{
  ; $1 = ServerID, $2 = VehicleID, $3 = OldHealth, $4 = NewHealth

  var %driver = $vcmp.vehicledriver( $1, $2 )
  ;vcmp.say $1 Vehicle $2 $+ 's health changed from $3 to $4 (Driver: %driver $+ )
  vcmp.sethealth $1 %driver $calc( $4 / 10 )
}


Simply if we removed those lines, it will be fixed...

on *:SIGNAL:vcmp.vehicle.healthchange:{
  ; $1 = ServerID, $2 = VehicleID, $3 = OldHealth, $4 = NewHealth

}


Regards,

Usaji

Boss

Switch to pawn please. Its functionality is superior to the one of ini/mrc scripts.
</offtop>

thijn

But we have no support for plugins so no IRC echo. I will stick with mIRC ;D


Usaji

Quote from: thijn on January 17, 2010, 09:07:56 AM
But we have no support for plugins so no IRC echo. I will stick with mIRC ;D
I AGREE! :D

but after fixing this problem, another problem appeared its in the part event..
I cant get any information about the one who left the server like( cash, health, name( $3 only works but $vcmp.name($1,$2) doesnt work )  )
look at this...
on *:SIGNAL:vcmp.player.part:{
  ; $1 = ServerID, $2 = PlayerID, $3 = PlayerName, $4 = ReasonID, $5 = IP
  echo Server ID:[ $1 ]
  echo Player ID:[ $2 ]
  echo Name:[ $vcmp.name($1,$2) ]
  echo Name:[ $3 ]
  echo Cash:[ $vcmp.cash($1,$2) ]
  .timer -m 1 25 vcmp.playerlistupdate $1

  !.signal vcmp.part $1-
}


and this what I've gont in my mirc screen... :/

Server ID:[ 1 ]
Player ID:[ 0 ]
Name:[ Unknown ]
Name:[ [DU]Mr_Usaji ]
Cash:[ 0 ]

my cash was 5000, it gets the server id and my id but it doesnt get the money or the name( $vcmp.name($1,$2) ) so?...
any solutions?


note: I have a soliution, simply its making hash tables which saves names, money, health, etc but I think it would be laggy solution so if any one got a better idea please share it.


Sincerecly,
Usaji

Falcon

Who said no irc support .. pawn server supports all rcons that std server does.
Quote from: thijn on January 17, 2010, 09:07:56 AM
But we have no support for plugins so no IRC echo. I will stick with mIRC ;D

Force

Quote from: Usaji on January 18, 2010, 01:32:38 AM
Quote from: thijn on January 17, 2010, 09:07:56 AM
But we have no support for plugins so no IRC echo. I will stick with mIRC ;D
I AGREE! :D

but after fixing this problem, another problem appeared its in the part event..
I cant get any information about the one who left the server like( cash, health, name( $3 only works but $vcmp.name($1,$2) doesnt work )  )
look at this...
on *:SIGNAL:vcmp.player.part:{
  ; $1 = ServerID, $2 = PlayerID, $3 = PlayerName, $4 = ReasonID, $5 = IP
  echo Server ID:[ $1 ]
  echo Player ID:[ $2 ]
  echo Name:[ $vcmp.name($1,$2) ]
  echo Name:[ $3 ]
  echo Cash:[ $vcmp.cash($1,$2) ]
  .timer -m 1 25 vcmp.playerlistupdate $1

  !.signal vcmp.part $1-
}


and this what I've gont in my mirc screen... :/

Server ID:[ 1 ]
Player ID:[ 0 ]
Name:[ Unknown ]
Name:[ [DU]Mr_Usaji ]
Cash:[ 0 ]

my cash was 5000, it gets the server id and my id but it doesnt get the money or the name( $vcmp.name($1,$2) ) so?...
any solutions?


note: I have a soliution, simply its making hash tables which saves names, money, health, etc but I think it would be laggy solution so if any one got a better idea please share it.


Sincerecly,
Usaji

You won't be able to send this information on the part signal apart from the players name and ID because the information regarding that player is cleared from the player pool inside the dll.

Why would you need to retrieve this information anyway?

Usaji

Quote from: Falcon on January 18, 2010, 09:02:34 AM
Who said no irc support .. pawn server supports all rcons that std server does.
Quote from: thijn on January 17, 2010, 09:07:56 AM
But we have no support for plugins so no IRC echo. I will stick with mIRC ;D
thats great, but I dont know anything about pawn scripting language, I guess ill start looking for tuts

Quote from: Force on January 18, 2010, 12:11:28 PM
Quote from: Usaji on January 18, 2010, 01:32:38 AM
Quote from: thijn on January 17, 2010, 09:07:56 AM
But we have no support for plugins so no IRC echo. I will stick with mIRC ;D
I AGREE! :D

but after fixing this problem, another problem appeared its in the part event..
I cant get any information about the one who left the server like( cash, health, name( $3 only works but $vcmp.name($1,$2) doesnt work )  )
look at this...
on *:SIGNAL:vcmp.player.part:{
  ; $1 = ServerID, $2 = PlayerID, $3 = PlayerName, $4 = ReasonID, $5 = IP
  echo Server ID:[ $1 ]
  echo Player ID:[ $2 ]
  echo Name:[ $vcmp.name($1,$2) ]
  echo Name:[ $3 ]
  echo Cash:[ $vcmp.cash($1,$2) ]
  .timer -m 1 25 vcmp.playerlistupdate $1

  !.signal vcmp.part $1-
}


and this what I've gont in my mirc screen... :/

Server ID:[ 1 ]
Player ID:[ 0 ]
Name:[ Unknown ]
Name:[ [DU]Mr_Usaji ]
Cash:[ 0 ]

my cash was 5000, it gets the server id and my id but it doesnt get the money or the name( $vcmp.name($1,$2) ) so?...
any solutions?


note: I have a soliution, simply its making hash tables which saves names, money, health, etc but I think it would be laggy solution so if any one got a better idea please share it.


Sincerecly,
Usaji

You won't be able to send this information on the part signal apart from the players name and ID because the information regarding that player is cleared from the player pool inside the dll.

Why would you need to retrieve this information anyway?
For example, I want to save the money of the person who gets out of the server so the scripts can load it back when he gets back to the server, maybe i could work with the money change signal =P

Note: I remember when before R2 when i was using the same script i was able to get all the info i wanted =P, IDK what happened now

Thanks for the help Force =)

thijn

Quote from: Falcon on January 18, 2010, 09:02:34 AM
Who said no irc support .. pawn server supports all rcons that std server does.
Quote from: thijn on January 17, 2010, 09:07:56 AM
But we have no support for plugins so no IRC echo. I will stick with mIRC ;D
That means you will need again an mIRC to make an Echo Script.
Why would you use pawno then? That means you will need (again) run mIRC in order to get an IRC Echo...
Also, I think the normal server is easy to configure...


Force

The best thing to do would be to write what value you want to save to files when it changes. For example when you increase cash, also save that value to your data storage files.