Jump to content

Irish

Members
  • Posts

    51
  • Joined

  • Last visited

Posts posted by Irish

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

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

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

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

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

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

    @TheSmart Yar tum mujh se sharmate kiyun ho? Mera bhi jawab diya karo xD

    Tum apna Payoneer account kaise re-charge karte ho?

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

  9. I think you must read the first post he is asking about :
    I want to create a vehs table and in that table to store more vehs

    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.

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

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

  12. 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! :wink:

×
×
  • Create New...