Jump to content




[1.0+][API][OOP]OVAR API - Persistant Variables

api lua

  • You cannot reply to this topic
4 replies to this topic

#1 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 30 March 2012 - 07:46 PM

This is my new API, called OVAR.
This is kind of like my older API, Consistant Variables, but it is more advanced, and flexible.

Functions
Spoiler


Examples
Spoiler


Programs using this API
Spoiler


Code
Spoiler


#2 nitebomber51

  • New Members
  • 17 posts

Posted 03 April 2012 - 09:20 AM

hey man looking at your code i'm a little tired so i can't understand this part
if ovar.exists("forum_example_user_".._name) then
so at the "forum_example_user_" do we change that to somthing else or does it work "as is"

#3 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 03 April 2012 - 04:21 PM

View Postnitebomber51, on 03 April 2012 - 09:20 AM, said:

hey man looking at your code i'm a little tired so i can't understand this part
if ovar.exists("forum_example_user_".._name) then
so at the "forum_example_user_" do we change that to somthing else or does it work "as is"

It will works "as is"

#4 nitebomber51

  • New Members
  • 17 posts

Posted 04 April 2012 - 12:29 AM

View Postmad, on 03 April 2012 - 04:21 PM, said:

View Postnitebomber51, on 03 April 2012 - 09:20 AM, said:

hey man looking at your code i'm a little tired so i can't understand this part
if ovar.exists("forum_example_user_".._name) then
so at the "forum_example_user_" do we change that to somthing else or does it work "as is"

It will works "as is"
thanks

#5 RODLON

  • New Members
  • 5 posts

Posted 03 May 2012 - 09:11 PM

Hey, does it works in computercraft 1.33?
I'm triyng to use your api but I'm getting errors when saving the variables:
r = ovar.new("adiuwusb",234)
r:save()
print(r.value)
r:unload()
ovar:84: attemp to index ? (a nil value)





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users