Jump to content

[HELP]PlayTime[SOLVED]


BluntZ

Recommended Posts

function CHECK(thePlayer) 
if getPlayerSerial(thePlayer) == "3FF2E7C91279184D3104A1ACCA7F3B03" then  
triggerClientEvent("SHOW",thePlayer) 
else 
outputChatBox("# Access denied ! ",thePlayer,255,0,0) 
end 
end 
addCommandHandler("TIMES",CHECK) 

When I type /TIMES then it give me that error.

Link to comment

Try that

function CHECK(thePlayer) 
local account = getPlayerAccount(thePlayer) 
local accountName = getAccountName(account) 
if ( isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Owner" ) )) then 
triggerClientEvent(thePlayer,"SHOW",thePlayer) 
else return 
outputChatBox("Access denied ! ",thePlayer,255,0,0) 
  end 
end 
addCommandHandler("TIMES",CHECK) 

Link to comment

[12:04:40 PM] Hamza Butt ( BluntZ ): WARNING:Script'dx_hours system/client.lua is not encoded in UTF-8 Loading as ANSL....

[12:05:20 PM] Hamza Butt ( BluntZ ): ERROR:Loading Script Failed: dx_hours-system:1 unexpected symbol near 'chat (28)

[12:05:58 PM] Hamza Butt ( BluntZ ): This is error when I type /TIMES , ERROR: Server triggered clientside event SHOW: But event is not addede clientside

Link to comment
[12:04:40 PM] Hamza Butt ( BluntZ ): WARNING:Script'dx_hours system/client.lua is not encoded in UTF-8 Loading as ANSL....

[12:05:20 PM] Hamza Butt ( BluntZ ): ERROR:Loading Script Failed: dx_hours-system:1 unexpected symbol near 'chat (28)

[12:05:58 PM] Hamza Butt ( BluntZ ): This is error when I type /TIMES , ERROR: Server triggered clientside event SHOW: But event is not addede clientside

The error is in client side, check if the SHOW trigger is exist in client or post the code of client

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