Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. You are over writing local variables
  2. You misspelled 'addEventHandler' (( you spelled 'addEventHanderl' )) after all, i think this topic should be locked or deleted as he posted this code without me noticing about it, as this code is mine + description on it is mine (( i know description is bad ))
  3. I know that the window isn't defined, but i still can see that he didn't create this, as i got this in one of my scripts for a long time, and the description is mine aswell, he once asked me about how to create scripts with gui's in it, i gave him the description and this kind of code.
  4. looks like my code i made earlier for one of my gamemodes.
  5. manve1

    Image links

    fetch the data there are functions like: fetchRemote that allow you to get data
  6. gui editor scripts need a table (( not sure why )), but for some reason when you use gui editor, u must re-name windows, memos, ect ... or add the tables (( if you know what i mean ))
  7. look over those scripts, you might find a bit where the lag might come from.
  8. if you got XML files, that save data in them, it might be one problem, because as far as i seen on other topics, people were saying that XML files have limited amount of data that they can save then they get laggy
  9. there is a resource on mta community like this
  10. you should make the website a lot neater, as it took me a bit of time just to realize where the other pages were, after all, in your website, you could lose a few words and make it more of a better in the English language, as you do repeat a few words too much that you don't really need.
  11. Sitaip geriau atrodis negu: http://red.fpsserver.com/GameCPX/tracker/?q=3&s=l&t=fff&gl=cc9a24&b=000&gbg=443f44&tc=d45e14&ts=000
  12. manve1

    error xml

    for i,nodee in ipairs(success) do guiGridListSetItemText(List,row,1,tostring(nodee),false,true) end the bit of 'for' in the brackets is to get a table, you can as far as i know, not use a table, but should look something like this: local xmlFile = xmlLoadFile ( "exampleFile.xml" ) if xmlFile then local node = xmlFindChild( xmlFile, "Name", 0 ) local success = xmlNodeGetValue ( node ) if success then for i = success do guiGridListSetItemText(List,row,1,tostring(i),false,true) end end end
  13. manve1

    error xml

    your getting the string of xmlNodeGetValue where the table should be, and i assume that you haven't seen the for looping in lua language. press here
  14. when joining server not to have window opened use: guiSetVisible function ArmorEventHandler( ) setPedArmor ( source, 100 ) end addEvent ( "onArmorEvent", true ) addEventHandler ( "onArmorEvent", getRootElement(), ArmorEventHandler)
  15. you created names on guiCheckBoxSetSelected which don't even exist
  16. If you know what you're doing, then it shouldn't be that hard. You're Welcome tho
  17. What u do, is u get when a player presses the key, and holds for 5seconds, then u kill the timer and start the function
  18. try unpacking r, g, b or tonumber them
  19. yes get when a player presses down the key. then output to chat that he needs to hold the key for 5seconds. after that, setTimer for 5 seconds, and if the player lets go off the key before timer runs out, cancel the timer and output it to the player
  20. try this and tell me what output's in the chat: function beachTurf(player) if (getElementData( player, "gang" )) then local playerGang = getElementData( player, "gang" ) if (playerGang) then outputChatBox('executed', player, 255, 255, 255) else outputChatBox('failed',player,255,255,255) end local r, g, b = exports [ "gang_system" ]:getGangColor ( playerGang ) setRadarAreaFlashing ( beachTurfA, true ) exports ["guimessages"] : outputServer ( player, "You entered the turf!" , 255, 0, 0 ) beachturfTimer = setTimer ( function(player) setRadarAreaColor ( beachTurfA, r, g, b, 100 ) exports ["guimessages"] : outputServer ( player, "Congratulations,your gang take this turf!" , 255, 0, 0 ) givePlayerMoney ( player, 2000 ) setRadarAreaFlashing ( beachTurfA, false ) end, 10000, 1 ) end end addEventHandler ( "onColShapeHit", beachTurfC, beachTurf )
  21. try changing 'player' to 'p' without ' '
  22. what do u mean 5seconds? like hold it down for 5 seconds?
  23. you sure exports are correct? and is there any debug error?
×
×
  • Create New...