Rachhet Posted January 29, 2017 Share Posted January 29, 2017 function outputChatBox ( "No hejka", getRootElement(), 255, 255, 255, true ) end addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn ) How can i fix this? ERROR: Loading script failed: [gameplay]/pierwszyskrypt/client.lua:2: name> or '...' expected near '"No hejka"' Link to comment
Best-Killer Posted January 29, 2017 Share Posted January 29, 2017 3 minutes ago, Rachhet said: function outputChatBox ( "No hejka", getRootElement(), 255, 255, 255, true ) end addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn ) How can i fix this? ERROR: Loading script failed: [gameplay]/pierwszyskrypt/client.lua:2: name> or '...' expected near '"No hejka"' function test () outputChatBox ( "No hejka", source, 255, 255, 255, true ) end addEventHandler ( "onPlayerSpawn", getRootElement(), test ) or addEventHandler ( "onPlayerSpawn", getRootElement(), function() outputChatBox ( "No hejka", source, 255, 255, 255, true ) end ) 2 works fine Link to comment
Simple0x47 Posted January 29, 2017 Share Posted January 29, 2017 function player_Spawn() outputChatBox ( "No hejka", root, 255, 255, 255, true ) end addEventHandler ( "onPlayerSpawn", root, player_Spawn ) -- FIXED Link to comment
Rachhet Posted January 29, 2017 Author Share Posted January 29, 2017 Thanks for solving my.. mistake. I learned something new. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now