Author Topic: A Problem  (Read 6253 times)

0 Members and 1 Guest are viewing this topic.

Offline Usaji

  • Street Thug
  • *
  • Posts: 13
    • View Profile
A Problem
« on: January 16, 2010, 04:53:49 am »
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

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: A Problem
« Reply #1 on: January 16, 2010, 05:04:18 am »
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.

Offline Usaji

  • Street Thug
  • *
  • Posts: 13
    • View Profile
Re: A Problem
« Reply #2 on: January 16, 2010, 06:56:52 pm »
ah, I Fixed it today, while looking at the scripts I found this..

Code: [Select]
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...

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

}

Regards,

Usaji

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: A Problem
« Reply #3 on: January 16, 2010, 07:02:27 pm »
Switch to pawn please. Its functionality is superior to the one of ini/mrc scripts.
</offtop>

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: A Problem
« Reply #4 on: January 17, 2010, 12:07:56 pm »
But we have no support for plugins so no IRC echo. I will stick with mIRC ;D

Offline Usaji

  • Street Thug
  • *
  • Posts: 13
    • View Profile
Re: A Problem
« Reply #5 on: January 18, 2010, 04:32:38 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...
Code: [Select]
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... :/

Code: [Select]
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

Offline Falcon

  • VC:MP Developer
  • Wiseguy
  • *
  • Posts: 73
    • View Profile
Re: A Problem
« Reply #6 on: January 18, 2010, 12:02:34 pm »
Who said no irc support .. pawn server supports all rcons that std server does.
But we have no support for plugins so no IRC echo. I will stick with mIRC ;D

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: A Problem
« Reply #7 on: January 18, 2010, 03:11:28 pm »
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...
Code: [Select]
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... :/

Code: [Select]
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?

Offline Usaji

  • Street Thug
  • *
  • Posts: 13
    • View Profile
Re: A Problem
« Reply #8 on: January 18, 2010, 04:38:47 pm »
Who said no irc support .. pawn server supports all rcons that std server does.
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

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...
Code: [Select]
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... :/

Code: [Select]
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 =)

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: A Problem
« Reply #9 on: January 18, 2010, 04:51:20 pm »
Who said no irc support .. pawn server supports all rcons that std server does.
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...

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: A Problem
« Reply #10 on: January 18, 2010, 05:12:38 pm »
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.