Jump to content

Bad Argument


Unique23

Recommended Posts

Posted

good morning everyone!

I made a gate script for the teams it works but it gives some warnings too.

The warnings are;

Bad Argument @getTeamName

Bad Player pointer @ getPlayerTeam

Here is the link of script

http://pastebin.com/GMkcYuM5

8 and 17th lines.

I have a question too.I added myself and my friend to the Unique team.I went to marker then gate opened.I started to wait on the marker but my friend came to me then gate closed.I don't want script to close gate if people are in the same team.

Posted

Maybe change getPlayerTeam to this;

local playerTeam = getPlayerTeam (source)  
if (playerTeam) then 

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

Posted

Not really, You need to make sure the element that entered the marker is a Player element using getElementType

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

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