Jump to content

Exp System doesnt work!


directshot

Recommended Posts

Posted

No. Join your server, login as admin, and write it.

Then, here, you must report what does it say (say whole lines please, not something like "there is an error of guigetsize").

If nothing happens, restart the script.

Posted

Nothing happens... i mean no errors or something like that...

and i restartet the script sometimes... should i edit my server files for the script? i only downloaded and activated the script!

Posted

when i tipp start exp_system then it succesfully started!

in the console then comes only this->

creating new DB table level_system

no errors -.- can you come on my server and check this?

Posted

Maybe it's just Castillo's bad script :P

Or 1.1.1 updates made it be wrong.

But by you, there is nothing to do. You should try to learn how to script instead of using community script. Those servers based on community never get far.

Posted

This resource won't work MAGICALLY, it has EXPORTED fuctions that you can use for y our own purposes.

If you would have READ the description of the resource, you could have noticed that it wasn't a magic script.

Exported functions (server-side only): 
getPlayerLevel -> arguments: thePlayer 
setPlayerLevel ->arguments: thePlayer, theLevel 
getPlayerEXP -> arguments: thePlayer 
setPlayerEXP -> arguments: thePlayer, theExperience 
addPlayerEXP -> arguments: thePlayer, theExperience 

A way of using it with zombies by Slothman:

addEvent("onZombieWasted",true) 
addEventHandler("onZombieWasted",root, 
function (killer) 
exports.exp_system:addPlayerEXP(killer,5) 
end) 

Posted

Castillo, be kind. He does not know anything about scripting and your res title sounds like what you call a "magic script".

You should have called your resource "EXP Manager".

Posted

I dont understand anything here. Iam a noob in scripting.. i only take the scripts for my server.. i thought this script give me a simply exp system... what should i do exactly? i dont understand the description of the resource...

Posted

Ok, then use this:

-- script.lua

addEventHandler("onPlayerWasted",root, 
function (_,killer) 
if (killer and killer ~= source) then 
        exports.exp_system:addPlayerEXP(killer,5) 
    end 
end) 

-- meta.xml:

    "Castillo" type="script" version="1.0"/> 
  
    

With these two codes you must create a new RESOURCE in your "resources" folder, there you must create two files, one called: script.lua and other called meta.xml after that, copy the code from here and paste it in the respective file.

Posted
You're welcome.

Ok, the resource is created with these two files. And now, iam finished? Only this one resource with these two files are needed or something else?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...