Jump to content

[Error]Please help me


TheMta

Recommended Posts

error at line : 10

Quote

outputChatBox("#00ff00Hack Point Haye Shoma #ff0000"..points.."/40#00ff00 Mibashad!", thePlayer, 255, 255, 255, true)

 



error :  attempt to concatenate local 'points' (a nil value)

 

please help me to fix this error 

 

Quote

local accSys = exports["Accounts"]
local miscSys = exports["Misc"]

addCommandHandler("myhackpoints",
function ( thePlayer, command )
	local faction = getElementData(accSys:getPlayerAcc(thePlayer), "pMember")
	if tonumber(faction) == 11 then
	local points = getElementData(accSys:getPlayerAcc(thePlayer), "pCanistra")
		outputChatBox("#00ff00Hack Point Haye Shoma #ff0000"..points.."/40#00ff00 Mibashad!", thePlayer, 255, 255, 255, true)	
	else
		outputChatBox("#ff0000Baraye Inkar Bayad Hacker Bashid!", thePlayer, 255, 255, 255, true)	
	end
end)

 

 

Edited by TheMta
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...