iPrestege Posted January 30, 2013 Posted January 30, 2013 (edited) hi!, i have problem here ) = on this code debugscript say the event is not adedd to the server side : Server : addEvent ( "Team", true ) addEventHandler ( "Team", root, function () spawnPlayer ( source, -3737.35132, -3003.31567,32.63086, 0, 46, 0, 0, getTeamFromName ( "Medic" ) ) r, g, b = getTeamColor ( getPlayerTeam ( source ) ) setPlayerNametagColor ( source, r, g, b ) giveWeapon ( source , 41, 100 ) end ) Client : addEventHandler ("onClientGUIClick", getRootElement(), function () if (source == Team) then triggerServerEvent("Team",localPlayer) guiSetVisible ( Wnd, false ) showCursor(false) elseif (source == Medic) then guiSetVisible ( Wnd, false ) end end) ... Edited January 30, 2013 by Guest
Castillo Posted January 30, 2013 Posted January 30, 2013 Maybe you forgot to set the server file at meta.xml or set it as "client" by mistake?
iPrestege Posted January 30, 2013 Author Posted January 30, 2013 Maybe you forgot to set the server file at meta.xml or set it as "client" by mistake? No am sure about it but it,s not working : "TeamSystem" author="Mr.Pres[T]ege" version="1.3.0" />
Castillo Posted January 30, 2013 Posted January 30, 2013 PM me the complete client side code with GUI, so I can test it.
iPrestege Posted January 30, 2013 Author Posted January 30, 2013 PM me the complete client side code with GUI, so I can test it. Check the Inbox message has been sent .
iPrestege Posted January 30, 2013 Author Posted January 30, 2013 The problem has been resolved by Castillo Thank You Castillo (SolidSnake14) .
Renkon Posted January 30, 2013 Posted January 30, 2013 Mind saying what was the problem so any other people having the same problem can fix it
iPrestege Posted January 30, 2013 Author Posted January 30, 2013 Mind saying what was the problem so any other people having the same problem can fix it the problem is not here on this ^ functions on other function on the server side and i don,t want to post it here .
Castillo Posted January 30, 2013 Posted January 30, 2013 Mind saying what was the problem so any other people having the same problem can fix it Was just a missing quote character.
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