Jump to content

Help with exp_system


Recommended Posts

function getRep ( source, commandName, playerName ) 
    if ( playerName ) then 
        thePlayer = getPlayerFromName ( playerName ) 
        if ( thePlayer ) then 
            local ExP = getElementData(localPlayer,"ExP" 
)           outputChatBox ( getPlayerName ( thePlayer ).." Experience is "..ExP" !", source ) 
        else 
            outputChatBox ( "Couldn't find '" .. playerName .. "'", source ) 
        end 
end 
addCommandHandler ( "getexp", getRep ) 

The problem is "getexp" command dont work i dont know why help please

Link to comment
function getRep ( source, commandName, playerName ) 
    if ( playerName ) then 
        thePlayer = getPlayerFromName ( playerName ) 
        if ( thePlayer ) then 
            local ExP = getElementData(localPlayer,"ExP" 
)           outputChatBox ( getPlayerName ( thePlayer ).." Experience is "..ExP" !", source ) 
        else 
            outputChatBox ( "Couldn't find '" .. playerName .. "'", source ) 
        end 
end 
addCommandHandler ( "getexp", getRep ) 

The problem is "getexp" command dont work i dont know why help please

string commandName, [string arg1, string arg2, ...] 

Link to comment

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...