Jump to content

[HelpP]


Tando

Recommended Posts

function test ( )
if getElementData(player, "Job") == "CIA" then 
if getElementData(player, "Clan") == "BBY" then
outputChatBox("You can't get this job ",player)
end

Is This function true ?

i want clan can't get this job

oh this job for public but i need just 1clan can't get it

Link to comment

No, that function isn't true since it doesn't fix errors. And you should define whom is 'player' variable.

function test ( )
   if getElementData(player, "Job") == "CIA" then 
      if getElementData(player, "Clan") == "BBY" then
         outputChatBox("You can't get this job ",player)
      end
   end
end

 

Link to comment
Just now, DeadthStrock said:

No, that function isn't true since it doesn't fix errors. And you should define whom is 'player' variable.


function test ( )
   if getElementData(player, "Job") == "CIA" then 
      if getElementData(player, "Clan") == "BBY" then
         outputChatBox("You can't get this job ",player)
      end
   end
end

 

function test (	player )
   if getElementData(player, "Job") == "CIA" then 
      if getElementData(player, "Clan") == "BBY" then
         outputChatBox("You can't get this job ",player)
      end
   end
end

thats u mean?

Link to comment

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