DannyRose Posted January 25, 2011 Share Posted January 25, 2011 Hello I and my sister Flora are serching for a partner, who is good in creating scripts, because we both cant it 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 your Danny and your Flora^^ Link to comment
12p Posted January 25, 2011 Share Posted January 25, 2011 Do you have some MONEY? Otherwise nobody will want to help. Link to comment
DannyRose Posted January 25, 2011 Author Share Posted January 25, 2011 No...^^ Maybe someone is not good in mapping or have no time for this. And then we make the map.^^ we dont have problems with mapping a city or somthing like this Link to comment
12p Posted January 25, 2011 Share Posted January 25, 2011 This is a serious thing huh. Not so easy to tell "we make the map (easy part), you make the script (hard part)". You should offer money or learn how to script, because here we are serious people looking for fame and money. Link to comment
Arran Posted January 25, 2011 Share Posted January 25, 2011 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
LT Uranus Posted January 25, 2011 Share Posted January 25, 2011 because here we are serious people looking for fame and money. loool. loooool indeed,most funny phrase after ''next resource that i will make -acl group super admins online'' omg Link to comment
Castillo Posted January 25, 2011 Share Posted January 25, 2011 I'm not sure if i understand what Uranus said Link to comment
12p Posted January 25, 2011 Share Posted January 25, 2011 loooool indeed,most funny phrase after ''next resource that i will make -acl group super admins online'' omg What the hell did you say ? It can't be understood. (Maybe it was a wrong-put comment ) Link to comment
LT Uranus Posted January 25, 2011 Share Posted January 25, 2011 loooool indeed,most funny phrase after ''next resource that i will make -acl group super admins online'' omg What the hell did you say ? It can't be understood. (Maybe it was a wrong-put comment ) 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 now u talk about serious people and Fame lool nvm if u dont get it sr wrong topic for such things Link to comment
xUltimate Posted January 25, 2011 Share Posted January 25, 2011 DannyRose, you wouldn't happened to be affiliated with IV-MP at all? Link to comment
DannyRose Posted January 26, 2011 Author Share Posted January 26, 2011 DannyRose, you wouldn't happened to be affiliated with IV-MP at all? Im sorry for my bad english... I dont know, whats the meaning of this is. Link to comment
DannyRose Posted January 26, 2011 Author Share Posted January 26, 2011 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. 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
12p Posted January 26, 2011 Share Posted January 26, 2011 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
DannyRose Posted January 26, 2011 Author Share Posted January 26, 2011 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
Castillo Posted January 26, 2011 Share Posted January 26, 2011 Login as admin and type INGAME /debugscript 3, this will show the errors in your script. Link to comment
proracer Posted January 26, 2011 Share Posted January 26, 2011 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
12p Posted January 26, 2011 Share Posted January 26, 2011 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
xUltimate Posted January 27, 2011 Share Posted January 27, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now