Jump to content

problema la argumente


TheDarkBlade

Recommended Posts

function nitro( source, commandName ) 
    local team = getTeamName(getPlayerTeam( thePlayer)) 
    if (team == "Staff") then 
        local vehicle = isPedDrivingVehicle ( source ) 
        addVehicleUpgrade ( vehicle , 1010 ) 
    else 
    outputChatBox ("You are not part of staff", source ) 
    end 
end 
addCommandHandler ("nos", nitro) 
  

[2015-12-26 01:56:07] WARNING: WRPG_nos\nos.lua:2: Bad argument @ 'getPlayerTeam' [Expected player at argument 1, got nil] 
[2015-12-26 01:56:07] WARNING: WRPG_nos\nos.lua:2: Bad argument @ 'getTeamName' [Expected team at argument 1, got boolean] 

Link to comment
function nitro( source, commandName ) 
    local team = getTeamName(getPlayerTeam( source)) --  
    if (team == "Staff") then 
        local vehicle = isPedDrivingVehicle ( source ) 
        addVehicleUpgrade ( vehicle , 1010 ) 
    else 
    outputChatBox ("You are not part of staff", source ) 
    end 
end 
addCommandHandler ("nos", nitro) 
  
  

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