Jump to content

missing something


tiesjan

Recommended Posts

Posted

hello, i'm missing a code or something in my script and i don't know what i need to enter there....

here it is

function showhelp(thePlayer) 
    showhelp=(????????)(thePlayer); 
    outputChatBox("/pm, send a personal message",thePlayer,255,0,0); 
    outputChatBox("/stations,set radio steams",thePlayer,255,0,0); 
    outputChatBox("/rules,a explanation of the rules and the punishments",thePlayer,255,0,0); 
    outputChatBox("/report report someone who breaks the rules ",thePlayer,255,0,0); 
    outputChatBox("/lock, lock your vehicle for others",thePlayer,255,0,0); 
end 
  
addCommandHandler("showhelp",help); 

its on the place with all the ?????? :lol:

Posted

What is this?

function showhelp(thePlayer) 
    outputChatBox("/pm, send a personal message",thePlayer,255,0,0) 
    outputChatBox("/stations,set radio steams",thePlayer,255,0,0) 
    outputChatBox("/rules,a explanation of the rules and the punishments",thePlayer,255,0,0) 
    outputChatBox("/report report someone who breaks the rules ",thePlayer,255,0,0) 
    outputChatBox("/lock, lock your vehicle for others",thePlayer,255,0,0) 
end 
  
addCommandHandler("showhelp",showhelp) 

No need for semi colons btw.

Business System viewtopic.php?f=108&t=35797

Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726

SQLite Tutorial viewtopic.php?f=148&t=38203

Posted

this is a help script.

if i start it and i type /help it has to show that outputchatbox lines.

and the problem is.... it doesn't.

i play with a couple of people on my server who doesn't much about mta and his commands

Posted

The command is /showhelp, you should change it to "help" if you want it like that.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
addCommandHandler ( string commandName, function handlerFunction, [bool restricted = false, bool caseSensitive = true] ) 

The first argument (the string) is the command.

second one is the function.

function showhelp(thePlayer) 
    outputChatBox("/pm, send a personal message",thePlayer,255,0,0) 
    outputChatBox("/stations,set radio steams",thePlayer,255,0,0) 
    outputChatBox("/rules,a explanation of the rules and the punishments",thePlayer,255,0,0) 
    outputChatBox("/report report someone who breaks the rules ",thePlayer,255,0,0) 
    outputChatBox("/lock, lock your vehicle for others",thePlayer,255,0,0) 
end 
  
addCommandHandler("help",showhelp) 

The command is /help now.

Business System viewtopic.php?f=108&t=35797

Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726

SQLite Tutorial viewtopic.php?f=148&t=38203

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