Jump to content

Irish

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by Irish

  1. Irish

    Help

    There is not a such resource uploaded on MTA community by now, so you gotta start working on it yourself. If you face any problems then you're welcome to ask for help here.
  2. viewtopic.php?f=91&t=48495
  3. Well whatever dimension you stated in your first code was incorrect, and you've posted the correct one afterwards. By the way its working fine for me; marker is created at the provided position. http://postimg.org/image/zewizlund/ - I don't know why it isn't working for you.
  4. You've stated the correct dimension (x,y,z) now, and they're (X) 1486.9837646484 (Y) -1687.2625732422 (Z) 14.046875, some integers from z were missing. Markeyr = createMarker(1486.9837646484, -1687.2625732422, 14.046875, "cylinder", 1, 255, 255, 255) function cmd(plr) setElementPosition(plr, 1486.9837646484, -1687.2625732422, 14.046875) end addCommandHandler("pos", cmd) The marker should be now created at the correct position.
  5. This is where you've created the marker. The cmd function exactly warps you there.
  6. At least link us to that resource so we can actually see what you're talking about.
  7. Markeyr = createMarker(-1486.7078857422, -1687.2141113281, 14, "cylinder", 1, 255, 255, 255) function cmd(plr) setElementPosition(plr, -1486.7078857422, -1687.2141113281, 14) end addCommandHandler("pos", cmd) You've created the marker somewhere not on the ground. Try this cmd function that will warp you to there and you'll see where the marker is created.
  8. My code and other people's code are working fine, he's just kidding all of us and nothing else.
  9. Irish

    SOLVED

    Hmm...didn't know because he has created another topic regarding this help.
  10. Irish

    SOLVED

    This topic is already titled as "SOLVED". @Walid
  11. Check the code again. You wouldn't have to use a function for creating a vehicle in this resource. The second code (EDIT one) is a function that removes/adds and shows the data, and I guess you've just copied that code which is why the vehicle wasn't created.
  12. c1 = createVehicle ( 520, -2891.84765625, 460.4560546875, 4.9140625, 0, 0, 90 ) function onEnter(thePlayer) if getElementModel(source) == 520 and getElementData(thePlayer, "class") ~= "Admin" then cancelEvent() outputChatBox("This Vehicle Is Locked for the Class:Admin", thePlayer, 0, 255, 0) end end addEventHandler("onVehicleStartEnter", getRootElement, onEnter) EDIT: function data (plr) if getElementData(plr, "class") ~="Admin" then setElementData(plr, "class", "Admin") outputChatBox("Your class data is: "..getElementData(plr, "class"), plr) else setElementData(plr, "class", "Nope") outputChatBox("Your class data is: "..getElementData(plr, "class"), plr) end end addCommandHandler("class", data) Use this function to add/remove you and check your data so you can be sure whether your data is "Admin" or whatever.
  13. function cars () c1 = createVehicle ( 520, -2891.84765625, 460.4560546875, 4.9140625, 0, 0, 90 ) end addEventHandler ( "onResourceStart", resourceRoot, cars ) function onEnter(thePlayer) if getElementData(thePlayer, "class") ~= "Admin" then cancelEvent() outputChatBox("This Vehicle Is Locked for the Class:Admin", thePlayer, 0, 255, 0) end end addEventHandler("onVehicleStartEnter", getRootElement(), onEnter)
  14. Lol...Meri baat kisi ko bhi sahi tarha samaj main nahi aa rahi . Mera kahne ka matlab ye tha kay, jab aap ko apna Payoneer account balance re-charge karna ho to aap kaise karte ho?
  15. I mean jab tumhary Payoneer account ka balance 0$ hota hai to tum account main balance kaise re-charge (add) karte ho?
  16. Well main to Payoneer kay liye apply karna laga hun (Agar account re-charge karne ka koi way howa to)...jo bhi hoga dekha jaiye ga @TheSmart Yar tum mujh se sharmate kiyun ho? Mera bhi jawab diya karo Tum apna Payoneer account kaise re-charge karte ho?
  17. Sony VPCSB38GG (Laptop) RAM: 4GB Processor: Intel® Core i7-2640M CPU @ 2.80 GHz (4 core, turbo boost up to 3.50 GHz*1) HDD: 750 GB Graphics: Dedicated Intel HD 3000 & External AMD Radeon HD 6470m
  18. mihayy5 asked regarding adding more vehicles in the table (STAY ON THE TOPIC). I won't start an bullshit argument with you. Also I will not reply to your post anymore unless its necessary. @ mihayy5 take the help of anyone who's code works for you. Of course, no matter who he is. EDIT: @Walid Stop PMing me and threatening me regarding your server. I don't care even 1% of your server so calm down. If you send me another PM like that then I will possibly report you.
  19. This post was replied twice with mistake. If possible remove this, please.
  20. And you must know he asked for an example. I'm not supposed to create those more vehs column for him. Those two "veh1" and "veh2" are enough. If he wants to store more vehicles in it, then he can do it right the way shown in example. Just add another "veh3" column for storing another veh. @Walid, if you think like that, then I think you must use your brain. Honestly I'm not here to show off my skills. I've intention to help people if I know the solution to the problem, not as like you to give random/unwanted/useless help.
  21. dbQuery(db, "CREATE TABLE IF NOT EXISTS vehs (veh1 TEXT, veh2 TEXT, x INTERGER, y INTEGER, z INTEGER) You can use only one "x,y,z" for both vehicles, but always remember that you select by veh1 or veh2. replace "TEXT" with "INTEGER" if integer doesn't works. Example for veh1: dbExec("INSERT INTO vehs SET x=?, y=?, z=? WHERE veh1=?", x, y , z, veh1 ) Example for veh2: dbExec("INSERT INTO vehs SET x=?, y=?, z=? WHERE veh2=?", x, y , z, veh2 ) You must create identified variable for both, veh1 and veh2. The only change between both codes are "veh1" or "veh2".
  22. Main tabhi apply karne laga tha jab maine iss topic ko parha, lekin problem wo nahi hai. Mujhy iss baat ka yaqeen nahi hai whether PayPal accept's Payoneer account so iss liye main tab taak apply nahi karunga jab tak ye point completely clear na ho. Even though aap ne mere saray sawallon ka jawab nahi diya, lekin phir bhi, thanks. By the way I guess tum Waleed ho? (The guy who's in my contact list of Skype)
  23. 1. How many days it took to get your card delivered? 2. Do they charge you monthly fee? 3. How do you re-charge your Payoneer account? (Through a Pakistani bank account or?)
  24. I considered your code correct. There is nothing to be compared about, as you've put the correct way of storing tables in a variable. Well, I will of course buy a VPS as soon as possible. Specs of server would be: 4GB RAM, 4 core CPU and 40GB SSD. I guess these specs are fine for now, as we can increase them when needed. I have many memberships in these kind of tut websites. Agar mujhy kuch na aye to tum ho na yar. Chalo aik try marte hain. Giving it a try won't harm us!
×
×
  • Create New...