Jump to content

What Proplem


Recommended Posts

What Proplem In This Code :idea:

addEventHandler('onClientGUIClick',guiroot, 
  if getElementType ( player ) == "police" and getElementModel 
function ( ) 
if (source == 1 ) then 
setElementHealth(source,100) 
setElementDimension ( source, 1 ) 
outputChatBox ( "#FF0000You Are Spwan #00FF00To Dimension ", source(), 255, 255, 255, true ) 
outputChatBox ( "#FF0000 To Go Really World Go To Red Blip  ", source(), 255, 255, 255, true ) 
end 
                             
                       end 
  
                                                            ); 

and thanx

Link to comment
  • Moderators
What Proplem In This Code :idea:
addEventHandler('onClientGUIClick',guiroot, 
  if getElementType ( player ) == "police" and getElementModel 
function ( ) 
if (source == 1 ) then 
setElementHealth(source,100) 
setElementDimension ( source, 1 ) 
outputChatBox ( "#FF0000You Are Spwan #00FF00To Dimension ", source(), 255, 255, 255, true ) 
outputChatBox ( "#FF0000 To Go Really World Go To Red Blip  ", source(), 255, 255, 255, true ) 
end 
                             
                       end 
  
                                                            ); 

and thanx

Well pretty much everything:

1 - indent your code

2 - Do not use anonymous functions if you are still learning the basics.

3 - source isn't a number and not a function neither.

4 - we need to know what kind of gui element source is (button ? grid list ?)

5 - Also, be sure you did the following tutorials here:

https://wiki.multitheftauto.com/wiki/Scr ... troduction

and

https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI

Link to comment
What Proplem In This Code :idea:
addEventHandler('onClientGUIClick',guiroot, 
  if getElementType ( player ) == "police" and getElementModel 
function ( ) 
if (source == 1 ) then 
setElementHealth(source,100) 
setElementDimension ( source, 1 ) 
outputChatBox ( "#FF0000You Are Spwan #00FF00To Dimension ", source(), 255, 255, 255, true ) 
outputChatBox ( "#FF0000 To Go Really World Go To Red Blip  ", source(), 255, 255, 255, true ) 
end 
                             
                       end 
  
                                                            ); 

and thanx

Well pretty much everything:

1 - indent your code

2 - Do not use anonymous functions if you are still learning the basics.

3 - source isn't a number and not a function neither.

4 - we need to know what kind of gui element source is (button ? grid list ?)

5 - Also, be sure you did the following tutorials here:

https://wiki.multitheftauto.com/wiki/Scr ... troduction

and

https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI

go to hell :lol:

i want help for code . :mrgreen:

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