Jump to content

[Error]Please help me


TheMta

Recommended Posts

Posted (edited)

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
Posted

The problem could be with getPlayerAcc function in "Accounts" resource, or where you set the element data 'pCanistra'. Show us more.

 

 

 

"Get busy living or get busy dying"

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