![]() |
|
LVP Class Documentation - Printable Version +- Las Venturas Playground (https://forum.sa-mp.nl) +-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html) +--- Forum: Las Venturas Playground (https://forum.sa-mp.nl/forum-9.html) +--- Thread: LVP Class Documentation (/thread-2599.html) |
LVP Class Documentation - Peter - 09-04-2007 Since a few weeks a new class has been included in the global PHP configuration. This means that everyone hosted on the *.sa-mp.nl websites has access to it, and therefore can use it's features. You do not need to include anything to your current scripts either! Since a number of these features can be usefull for you and/or other people, a little documentation was pretty much required, so here it is. Class: LVP The LVP class provides an easy interface between your scripts and information related to the Las Venturas Playground server. All information is properly cached and gets updated automatically -- stuff you do not have to worry about. A number of functions have been created to get information, available for you are the following.
New functions will be added on a regular basis, and ofcourse - I'm open to suggestions for more functions. You can use this topic for suggestions, comments and bug-reports about the PHP class. I am however asking you to respect me not listing other functions in the class, just don't use methods to get the entire function list. Thank you, and good luck creating cool stuff. Peter Re: Documentation: LVP Class - Rippance - 09-04-2007 Cool, this will be nice to fiddle around with a bit. Lets see
Re: Documentation: LVP Class - tomozj - 09-04-2007 Woah, very nice. Thanks! ![]() Lets try... [me=tomozj]opens Zend[/me] Re: Documentation: LVP Class - Badeend - 09-04-2007 I'd like to see a function like GetVehicleInfo(), which returns all vehicle spawn info ![]() GetPropertyTable sometimes causes a notice and doesn't return any properties, maybe a changing property name is causing this problem. I'll poke when it happens again. Re: Documentation: LVP Class - MrBondt - 09-04-2007 Plain hax. ( )
Re: Documentation: LVP Class - Peter - 09-04-2007 (09-04-2007, 06:44 PM)Badeend link Wrote:I'd like to see a function like GetVehicleInfo(), which returns all vehicle spawn info I already noticed that this afternoon, and fixed it
Re: Documentation: LVP Class - Chillosophy - 09-05-2007 It's great! ![]() That said, GetPropertyTable still only gives results about 10-20% of the time. Is that fixable? I guess it's cached so it shouldn't give problems, right?
Re: Documentation: LVP Class - Chillosophy - 09-09-2007 How often are the playerstats (except for 'lastseen') updated? I thought they should update if a player leaves the game, but they're not. Re: Documentation: LVP Class - tomozj - 09-09-2007 Yeah, there have also been reports for mine that they aren't showing on the top 10 stats lists. They are linked to the forum fine, but they don't show? :s Link. benbmyers, is one case where this happens. Oh, and you can also see that this happens on Chillosophy's Stats Page, meaning it's not my script being weird (not that it would, of course ).
Re: LVP Class Documentation - tomozj - 09-27-2007 Okay, utilized the LVP Class pretty nicely. Now, I have a question... Why is k1LLa on the top list 3 times, as "k1LLa", "[HsG]k1LLa" and "TopMan" ? Nickchanges are screwing things up?
|