-
Posts
1,283 -
Joined
-
Last visited
Everything posted by manve1
-
You are over writing local variables
-
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 ))
-
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.
-
looks like my code i made earlier for one of my gamemodes.
-
fetch the data there are functions like: fetchRemote that allow you to get data
-
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 ))
-
look over those scripts, you might find a bit where the lag might come from.
-
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
-
there is a resource on mta community like this
-
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.
-
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
-
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
-
when joining server not to have window opened use: guiSetVisible function ArmorEventHandler( ) setPedArmor ( source, 100 ) end addEvent ( "onArmorEvent", true ) addEventHandler ( "onArmorEvent", getRootElement(), ArmorEventHandler)
-
you created names on guiCheckBoxSetSelected which don't even exist
-
If you know what you're doing, then it shouldn't be that hard. You're Welcome tho
-
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
-
try unpacking r, g, b or tonumber them
-
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
-
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 )
-
try changing 'player' to 'p' without ' '
-
what do u mean 5seconds? like hold it down for 5 seconds?
-
you sure exports are correct? and is there any debug error?
