Jump to content

Need Some Help! (Solution)


iPrestege

Recommended Posts

Posted (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 by Guest

  

Posted

Maybe you forgot to set the server file at meta.xml or set it as "client" by mistake?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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" /> 
  

  

Posted

PM me the complete client side code with GUI, so I can test it.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You're welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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

  

Posted
Mind saying what was the problem so any other people having the same problem can fix it

Was just a missing quote character.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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