Jump to content

Searching for a partner^^


DannyRose

Recommended Posts

Hello

I and my sister Flora are serching for a partner, who is good in creating scripts, because we both cant it :lol:

We need some little scripts and then you can wish you the map, you want. We make all kinds of maps.

We hope here is somebody, who is good in scripting and is interested in cooperation :oops:

your Danny and your Flora^^

Link to comment
because here we are serious people looking for fame and money.

looool. Well anyway I recommend you try the scripting basics and don't worry if it looks to hard to understand because everyone had to learn lua at some stage and the only people who would have understood it straight away are those who were already familiar with programming. You want to learn the lua basics and then you'll have a general understanding of what things are, whatever you do don't jump in the deep end and look at some complicated script somebody made as it will put you off if you can't understand it.

I strongly recommend learning the basics here: http://lua-users.org/wiki/TutorialDirectory to get an understanding. I've been scripting for over a year and just learnt something new today from reading that website.

Link to comment
loooool indeed,most funny phrase after ''next resource that i will make -acl group super admins online'' omg :-D

What the hell did you say xD? It can't be understood. (Maybe it was a wrong-put comment xD)

i mean,once i saw in comunity-resourses-online admins resourse-comments ( go and check ) : ''and also i will make online super admins in future'',wtf :-D now u talk about serious people and Fame lool :-) nvm if u dont get it :-D sr wrong topic for such things

Link to comment

I have a question again. I want to learn scripting and i want to make a "trucker-job-script" :?

Now, After 3 hours I dont know, what I should do now.

It doesnt Work.

I want to create a marker and when a player go in it, there should be a truck. :cry:

Later I want, when the player is in the truck a new marker and a blip at a new point is, where he must drive.

When he is in the new marker he gets money And will be teleport back. But thats not importaint now.

Please say me, what is wrong and please dont laugh about my english or my bad script...

TruckerIn = createMarker(1087, 1895, 11, "cylinder", 1.5, 255, 0, 0, 150) 
  
function TruckerTel(thePlayer) 
    if getElementType(thePlayer) == "player" then 
    setElementPosition(thePlayer 1095, 1880, 11, getRootElement()) 
    and createVehicle ( 432, 1098, 1880, 11, getRootElement()) 
    and outputChatBox ("Steig in den LKW!", getRootElement()) 
end 
addEventHandler("onMarkerHit", TruckerIn, TruckerTel) 

Link to comment

OMFG.

1. use [ lua ] tags before showing your codes!

 

2.

TruckerIn = createMarker(1087, 1895, 11, "cylinder", 1.5, 255, 0, 0, 150) 
  
function TruckerTel(thePlayer) 
   if getElementType(thePlayer) == "player" then 
      setElementPosition(thePlayer 1095, 1880, 11, getRootElement()) 
      createVehicle ( 432, 1098, 1880, 11, getRootElement()) 
      outputChatBox ("Steig in den LKW!", getRootElement()) 
   end 
end 
addEventHandler("onMarkerHit", TruckerIn, TruckerTel) 

Link to comment
TruckerIn = createMarker(1087, 1895, 11, "cylinder", 1.5, 255, 0, 0, 150) 
function Truckerjob() 
    function TruckerTel(thePlayer) 
        if getElementType ( thePlayer ) == "player" then 
        setElementPosition ( thePlayer 1095, 1880, 11 ) 
        and createVehicle ( 432, 1098, 1880, 11 ) 
        and outputChatBox ( "Steig in den LKW!" ) 
    end 
    addEventHandler ("onMarkerHit", TruckerIn, TruckerTel) 
    NewMarker = createMarker ( 2755, -2464, 14 "cylinder", 1.5, 255, 0, 0, 150 ) 
    NewBlip = createBlip ( 2755, -2464, 14, 51, 1, 255, 0, 0, 0, 255 ) 
    function TruckerPoint ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
        givePlayerMoney ( thePlayer, 750 ) 
        and outputChatbox ( "Danke für die Lieferung! Dein Lohn: 750$") 
        and setElementposition ( thePlayer 197, 1880, 11 ) 
    end 
    addEventHandler ( "onMarkerHit", NewMarker, TruckerPoint ) 
end 
addEventHandler ( "onResourceStart",Truckerjob, TruckerIn ) 

And what is wrong with this now?^^

Link to comment
TruckerIn = createMarker(1087, 1895, 11, "cylinder", 1.5, 255, 0, 0, 150) 
function Truckerjob() 
    function TruckerTel(thePlayer) 
        if getElementType ( thePlayer ) == "player" then 
        setElementPosition ( thePlayer 1095, 1880, 11 ) 
        and createVehicle ( 432, 1098, 1880, 11 ) 
        and outputChatBox ( "Steig in den LKW!" ) 
    end 
    addEventHandler ("onMarkerHit", TruckerIn, TruckerTel) 
    NewMarker = createMarker ( 2755, -2464, 14 "cylinder", 1.5, 255, 0, 0, 150 ) 
    NewBlip = createBlip ( 2755, -2464, 14, 51, 1, 255, 0, 0, 0, 255 ) 
    function TruckerPoint ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
        givePlayerMoney ( thePlayer, 750 ) 
        and outputChatbox ( "Danke für die Lieferung! Dein Lohn: 750$") 
        and setElementposition ( thePlayer 197, 1880, 11 ) 
    end 
    addEventHandler ( "onMarkerHit", NewMarker, TruckerPoint ) 
end 
addEventHandler ( "onResourceStart",Truckerjob, TruckerIn ) 

And what is wrong with this now?^^

I think you can first delete line 2 because it's unnenecesarry.

Delete every "and's", you don't need it.

Link to comment

OMG I told you use [lua] tags! -.-

Whatever, you should read a scripting manual before scripting.

This is not a text book, those "and A_FUNCTION" makes the script go get sintax errors... You must only use "and" with an "if" with 2 conditions. For example:

if getLocalPlayer() and getElementType(getLocalPlayer()) == "player" then 
end 

AAAAND I see you haven't gave "end" to the "if"s!

So the code would be this:

TruckerIn = createMarker(1087, 1895, 11, "cylinder", 1.5, 255, 0, 0, 150) 
function Truckerjob() 
    function TruckerTel(thePlayer) 
        if getElementType ( thePlayer ) == "player" then 
         setElementPosition ( thePlayer 1095, 1880, 11 ) 
         createVehicle ( 432, 1098, 1880, 11 ) --"and" deleted 
         outputChatBox ( "Steig in den LKW!" ) --"and" deleted 
        end --always use "end" to stop the "if" statement! 
    end 
    addEventHandler ("onMarkerHit", TruckerIn, TruckerTel) 
    NewMarker = createMarker ( 2755, -2464, 14 "cylinder", 1.5, 255, 0, 0, 150 ) 
    NewBlip = createBlip ( 2755, -2464, 14, 51, 1, 255, 0, 0, 0, 255 ) 
    function TruckerPoint ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
        givePlayerMoney ( thePlayer, 750 ) 
        outputChatBox ( "Danke für die Lieferung! Dein Lohn: 750$") --"and" out -- This was wrong, it was "outputChatbox", it must contain Capital B. 
        setElementPosition ( thePlayer 197, 1880, 11 ) --"and" out -- This is wrong, it had non-capital "P" 
        end --"end"! 
    end 
    addEventHandler ( "onMarkerHit", NewMarker, TruckerPoint ) 
end 
addEventHandler ( "onResourceStart",getResourceRootElemen(), Truckerjob )--What the .... Truckerjob is not a resource, use getResourceRootElement()! 

Link to comment

Also, you don't need those "and"s, eg you have

function TruckerPoint ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
        givePlayerMoney ( thePlayer, 750 ) 
        and outputChatbox ( "Danke für die Lieferung! Dein Lohn: 750$") 
        and setElementposition ( thePlayer 197, 1880, 11 ) 
end[/lua 
  
and it should be 
  
[lua]function TruckerPoint ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
        givePlayerMoney ( thePlayer, 750 ) 
        outputChatbox ( "Danke für die Lieferung! Dein Lohn: 750$") 
        setElementposition ( thePlayer 197, 1880, 11 ) 
end 

and what's this? creating a function within a created function?

Use this

TruckerIn = createMarker(1087, 1895, 11, "cylinder", 1.5, 255, 0, 0, 150) 
function Truckerjob() 
    NewMarker = createMarker ( 2755, -2464, 14 "cylinder", 1.5, 255, 0, 0, 150 ) 
    NewBlip = createBlip ( 2755, -2464, 14, 51, 1, 255, 0, 0, 0, 255 ) 
end 
addEventHandler ( "onResourceStart",Truckerjob, TruckerIn ) 
  
function TruckerTel(thePlayer) 
    if getElementType ( thePlayer ) == "player" then 
    setElementPosition ( thePlayer 1095, 1880, 11 ) 
    createVehicle ( 432, 1098, 1880, 11 ) 
    outputChatBox ( "Steig in den LKW!" ) 
end 
addEventHandler ("onMarkerHit", TruckerIn, TruckerTel) 
  
function TruckerPoint ( thePlayer ) 
    if getElementType ( thePlayer ) == "player" then 
        givePlayerMoney ( thePlayer, 750 ) 
        outputChatbox ( "Danke für die Lieferung! Dein Lohn: 750$") 
        setElementposition ( thePlayer 197, 1880, 11 ) 
    end 
addEventHandler ( "onMarkerHit", NewMarker, TruckerPoint ) 

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