Jump to content

Deepu

Members
  • Posts

    354
  • Joined

  • Last visited

Everything posted by Deepu

  1. WELL GOOD NEWS I FIGURED IT OUT MYSELF I JUST CHANGED HEIGHT TO 100 AND WORKED THANK YOU FOR YOUR "DUMB" ANSWERS KRZO
  2. I can't do it? Do what? Firstly, in wiki the height and width ain't clearly mentioned. Secondly, I can make anything unless and until its explained clearly. Thirdly, You ain't trying to help me btw whats develop mode 0_o never heard of it
  3. Hahahahaha you might feel I am an idiot and cant make a simple col shape but look this.... I made it x1 and y1 and the col shape spawns like in 1 point Maybe smaller than 1m (ingame)
  4. 100? You mean 100s gonna cure the problem? I just want the whole farm to be colshaped....... k I will try my steps and if dont work then I do something MYSELF ! ****
  5. you think I absent mindedly come here? No son, I read wiki and got confused PS: if you can help please help me by making the colshape or fixing error and if you want +1 post please dont post
  6. you know what? check out this post viewtopic.php?f=91&t=52822 and see castillo's posts
  7. to find the distance between x1 and y1 and x2 and y2 which is width and height respectively.
  8. local x1 = -1195 local y1 = -1063.5 local x2 = -1003.200012207 local y2 = -1065.5999755859 width, height = ( x2 - x1 ), ( y2 - y1 ) bigCol = createColRectangle(x1, y1, x2, y2, width, height) fappa = createBlipAttachedTo(bigCol, 55) function theThing (hitElement) if hitElement == localPlayer then outputChatBox("yeah! this is the col shape", thePlayer, 255, 2, 0, false) end end addEventHandler("onClientColShapeHit", bigCol, theThing)
  9. yeah I did the maths theorem of lines difference and pythagorean theorem still the height and width are correct but the script dont work
  10. guyz you know the big farm in mta? ----->-1195, -1063.5, 129.19999694824 can u make a colRectangle there? It should cover the whole farm Please I need it
  11. k thanks I will check if it no work i ask
  12. Deepu

    number.....

    How to show in lua that if the text in the gui is a number then set element's Data to that number written in the edit box ? URGENT PLS HELP
  13. how to show that if the text in edit box is a number then set the number ?
  14. yeah I made it it worked but uh... I have to do /drugs amount and /drugs again to make it to the number local marker = createMarker(2483.900390625, -1666.7001953125, 13.3, "cylinder", 1, 255, 2, 0) function theThing (cmd, Number) currentDrugs = getElementData(localPlayer, "drugs") or 0 noob = setElementData(localPlayer, "drugs", currentDrugs + Number) end addCommandHandler("drugs", theThing) function padappa ( ) dxDrawText ( tostring ( currentDrugs ), 507, 466, 786, 569, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false ) end addEventHandler ( "onClientRender", root, padappa )
  15. hmmm..... it works but uh how can I like in a marker if a player stands then he gets the amount of drugs that he enters in the gui edit box. I don't know if its 1 or 5 or 8. depends on the number he writes in gui's edit box any answers citizen?
  16. how can I tell that : if pro == 1 or more then setElementData(localPlayer, "drugs", pro + 1 more) how do I do that in lua code?
  17. what does that mean? the ones u showed
  18. http://imgur.com/vjebYRF http://imgur.com/oi7wGRM
  19. when I do /drugs it says false
  20. hmmm but castillo, it outputs in the screen in a dxdrawtext as "nil" its written nil in screen
  21. Deepu

    Help !

    tried that but no works
  22. local marker = createMarker(2483.900390625, -1666.7001953125, 13.3, "cylinder", 1, 255, 2, 0) function theThing () pro = getElementData(localPlayer, "Drugs") if pro == 0 then noob = setElementData(localPlayer, "Drugs", 1) + pro padappa() end end addCommandHandler("drugs", theThing) function padappa () dxDrawText(""..pro.."", 507, 466, 786, 569, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root, padappa) it says attempt to concatenate pro( a boolean value)
  23. Deepu

    video.....

    I am asking a doubt..... How can I add a 4-5minute video to my server? and please explain how to cuz I seen a server having a 10 min video
  24. ADMIN PLEASE LOCK THIS GOD FORSAKEN TOPIC PLEASE PEOPLE ARE SARCASING ME TOPIC: LOCKED (REASON: I AM GONNA LEARN BY MYSELF)
×
×
  • Create New...