Jump to content

[HELP] Where is the problem?


MitnickP56

Recommended Posts

You forgot the visibleTo argument on the outputChatBox function, See the Syntax:

Server:

bool outputChatBox ( string text [, element visibleTo=getRootElement(), int r=231, int g=217, int b=176, bool colorCoded=false ] ) 

Client:

bool outputChatBox ( string text [, int r=231, int g=217, int b=176, bool colorCoded=false ] ) 

As you can see there's a difference between the client and the server syntax, this probably was your problem.

Link to comment
How edit it: 1. outputChatBox see only this gay, who using /sg :/ All players must see in on chat. And I wanna add here GameSpeed = tnumer by ..Nick..

this gay xD

addCommandHandler("sg", 
  function(sourcePlayer, command, value) 
    setGameSpeed(tonumber(value))   
   outputChatBox('GameSpeed = '.. tonumber(value)..' by ' .. getPlayerName(sourcePlayer),root, 0, 240, 0 ) 
  end 
) 

Link to comment
How edit it: 1. outputChatBox see only this gay, who using /sg :/ All players must see in on chat. And I wanna add here GameSpeed = tnumer by ..Nick..

this gay xD

addCommandHandler("sg", 
  function(sourcePlayer, command, value) 
    setGameSpeed(tonumber(value))   
   outputChatBox('GameSpeed = '.. tonumber(value)..' by ' .. getPlayerName(sourcePlayer),root, 0, 240, 0 ) 
  end 
) 

Really Thanks, all working :]

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