Hi,
I've had this problem for a while with VRocker's new DLL where it returns Unknown for the name of Skimmers and Boats...
Here is a screenshot:
(http://img517.imageshack.us/img517/1618/vcmp166ah7.th.jpg) (http://img517.imageshack.us/my.php?image=vcmp166ah7.jpg)(http://img517.imageshack.us/images/thpix.gif) (http://g.imageshack.us/thpix.php)
Any ideas on how to fix this? I am using the latest version of the DLL (1.0.0.3), also, I think there may be a different entry number for the boats and skimmers because on every other vehicle, I get the message saying you entered a blah (Scripted it in) but not for the skimmer. Are there more entry methods other than 18 and 17?
Cheers,
Force
Yeah when i get or spawn any vehicle the same problem happen with me too.
But if i type it again (second time) it will show the name.
I don't know why but this problem appear only the first time when i use this function. Maybe you can make a text or ini file for all models's names.
I Think only VRocker can help u bith in this problem but he is away i think.. :-\
(http://i47.servimg.com/u/f47/12/77/87/53/coolte10.gif)
This problem occurs due to the way the dll gets vehicle information. Due to the way the vcmp rcon protocol is, no information about vehicles gets sent until somebody enters a vehicle.
A way around this is to use the same method as the WSV, which reads a copy of the config.ini, parses it and aadds the information into the internal pools.
This should fix the problems with vehicle IDs. since doing //echo -a $vcmp.vehiclenamemodel( 190 ) returns skimmer.
Funny thing is though...
Some of the dll aliases work with //echo -a
But they do not work inside scripts.
An example would be $vcmp.name($1,$2) where $2 is the id.
and of course the $vcmp.vehiclenamemodel
Quote from: VRocker on September 28, 2008, 11:19:29 PM
A way around this is to use the same method as the WSV, which reads a copy of the config.ini, parses it and aadds the information into the internal pools.
The thing is, I have done that and it works fine for EVERY vehicle apart from those that are to do with the sea....