Jump to content

Help Script


Recommended Posts

Posted

I wonder why this script is not showing the name of the player who typed "/vincular" and the message is also not appearing for all

  
function vincular () 
  
          outputChatBox ('[Forum] O Player ".. getPlayerName(getPlayerName(player)).."', root, 255, 255, 255, true) 
  
end 
addCommandHandler ( "vincular", vincular) 

Posted

Try this:

function vincular(player) 
    outputChatBox ("[Forum] O Player "..getPlayerName(player), root, 255, 255, 255, true) 
end 
addCommandHandler ( "vincular", vincular) 

Posted
DNL291

I type /vincular and nothing appears

Are you sure it's server side? Post the meta.xml file .

<meta> 
    <info name="ForumINFO" author="Miller" version="1.0" type="script" /> 
    <script src="main.lua" type="server"/> 
</meta> 

Posted
Try this:
function vincular(player) 
    outputChatBox ("[Forum] O Player "..getPlayerName(player), root, 255, 255, 255, true) 
end 
addCommandHandler ( "vincular", vincular) 

was missing the command in chat, thanks

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