iPrestege Posted January 7, 2013 Share Posted January 7, 2013 (edited) hi how are you ? fine ? i have a problem with wtf team code : -- Client Side addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == Join ) then triggerServerEvent("Drift",getLocalPlayer()) end end -- Server Side Drift = createTeam( "Players Drift",255,255,0) addEvent("Drift",true) addEventHandler("Drift",root, function () setPlayerTeam ( source, Drift ) outputChatBox ( "#FF0000" .. getPlayerName(source) .. " #FFFF00Has Joind Drift Game !", getRootElement(), 255, 255, 255, true ) end ) What,s the wrong ? Edited January 7, 2013 by Guest Link to comment
TAPL Posted January 7, 2013 Share Posted January 7, 2013 You missed ")" in client side. -- Client Side addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == Join ) then triggerServerEvent("Drift",getLocalPlayer()) end end) Link to comment
iPrestege Posted January 7, 2013 Author Share Posted January 7, 2013 You missed ")" in client side. -- Client Side addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == Join ) then triggerServerEvent("Drift",getLocalPlayer()) end end) thanks it works! . but coloring here use #ff not working @ server side ! : Drift = createTeam( "Players Drift",255,255,0) addEvent("Drift",true) addEventHandler("Drift",root, function () setPlayerTeam ( source, Drift ) outputChatBox ( "#ffff00[#FF0000" .. getPlayerName(source) .. "#ffff00]#FFFF00Has Joind Drift Game !", getRootElement(), 255, 255, 255, true ) end ) Link to comment
abu5lf Posted January 7, 2013 Share Posted January 7, 2013 thanks it works! . but coloring here use #ff not working @ server side ! : Drift = createTeam( "Players Drift",255,255,0) addEvent("Drift",true) addEventHandler("Drift",root, function () setPlayerTeam ( source, Drift ) outputChatBox ( "#ffff00[#FF0000" .. getPlayerName(source) .. "#ffff00]#FFFF00Has Joind Drift Game !", getRootElement(), 255, 255, 255, true ) end ) Your code works fine. Link to comment
iPrestege Posted January 7, 2013 Author Share Posted January 7, 2013 thanks it works! . but coloring here use #ff not working @ server side ! : Drift = createTeam( "Players Drift",255,255,0) addEvent("Drift",true) addEventHandler("Drift",root, function () setPlayerTeam ( source, Drift ) outputChatBox ( "#ffff00[#FF0000" .. getPlayerName(source) .. "#ffff00]#FFFF00Has Joind Drift Game !", getRootElement(), 255, 255, 255, true ) end ) Your code works fine. yeah it was my fault i was using color code in my nickname problem fixed thank you TAPL . 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