Jump to content

Recommended Posts

Posted

WARNING: ***/client.lua:3" Bad argument @ 'outputChatBox' [Expected number at argument2,got player]

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

ًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًزًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًًً

Edited by #_iMr.[E]coo
Posted
addEventHandler( "onClientPlayerSpawn" , getRootElement (),
    function ()
	      outputChatBox( getPlayerName(source).." Has Spawned ", source)
     end
	 )

:|:|  its my first script 

Posted
1 hour ago, #_iMr.[E]coo said:

addEventHandler ( 'onClientPlayerSpawn' , root ,
  function ( )
    outputChatBox ( getPlayerName ( source ) .. ' Spawn ! ' )
  end
)

 

i've to leave space between getPlayerName and ( source ) ?

 

Posted

No the space between brackets doesn't make any difference (source) and ( source ) is exactly the same, the code is a bit easier to look at with spaces.

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