Search the Community
Showing results for tags 'invite'.
-
discord Discord invalid invite link
KamyarBNJ posted a topic in Site/Forum/Discord/Mantis/Wiki related
Hi I tried to join the mta server via the link https://discord.com/invite/mtasa But discord claims that this invite link is invalid is not working and it's invalid Can you please help me that how can I join the discord server I just started learning scripting in luad I have to join their to discord for my questions. -
Hi, I Have Problem In Team System !!! The Idea is to set ElementData by Panel... And when the Player have that ElementData he can join the Team .. Can anyone help me ?? PLease :\ This Is the Code ------------------------------------------------ function Invitar (player) local Vipteam = getTeamFromName("F.B.I") local thePlayer = getPlayerFromName(source) if (Vipteam) then setElementData ( source,"F.B.I",true) outputChatBox ( "#00FF00To Join #2EFF9A*F.B.I* #FF0000/accept",source, 0, 255, 0, true ) else cancelEvent() end end addEvent( "FBI", true) addEventHandler( "FBI", getRootElement(), Invitar ) ------------------------------------------------------------- addCommandHandler( "accept", function(player) if getElementData(player,"Player") and getElementData(player,"F.B.I") == true then setPlayerTeam(player, Vipteam) triggerClientEvent (source, "lainvitacion", source) else cancelEvent() outputChatBox ( "#FF0000You Are Not Invited To Any Clan !!",source, 0, 255, 0, true ) end end ) And This the Errors that i got :\ WARNING: TeamSystem\server.lua:54: Bad argument @ 'getPlayerFromName' [Expected string at argument 1, got player] WARNING: TeamSystem\server.lua:89: Bad argument @ 'getPlayerFromName' [Expected string at argument 1, got nil] WARNING :TeamSystem\server.lua:90: Bad argument @ 'getElementData' [Expected element at argument 1, got nil] Thanks