Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. ok, btw, try this instead of that script: function bannCheck (nick, ip, username, serial) local bt = tonumber(MySQL_GetString("Bann", "user_data", "Name LIKE '"..nick.."'")) if bt then if bt > 0 then kickPlayer(source,root,"Du bist gebannt!") end end end addEventHandler("onPlayerConnect", getRootElement(), bannCheck)
  2. nah, you have to put an event first then attach it to a player(if it's client-sided then it's automatically localplayer, but you should still put root) after you attach it to the player then the function comes in, this is where you're going to start the script.
  3. When is this "MySQL_GetString" function triggered? Anyways, try this: function MySQL_GetString(feldN, tableN, bedingung) local result = mysql_query(sqlcon, "SELECT '"..feldN.."' FROM '"..tableN.."' WHERE Username='"..mysql_escape_string(sqlcon, bedingung).."'") if (not result) then outputDebugString(mysql_error(sqlcon)) else outputDebugString(mysql_num_rows(result)) if(mysql_num_rows(result) > 0) then local ds = mysql_fetch_assoc(result) local savename = feldN mysql_free_result(result) return ds[feldN] else outputDebugString("Test!") mysql_free_result(result) return false end end end
  4. Ya, those are predefined variables, and here: viewtopic.php?f=91&t=39678
  5. well, for resources, you could use: resourceRoot resourceSourceRoot or for gui's, you could use: guiRoot root for every player, you could use: getElementsByType("player")
  6. try kicking the player instead. kickPlayer
  7. remove the false at the end, it's only needed for click event handlers. try this: function clientRegister(button, state) if button == "left" and state == "up" then local username = guiGetText(registerEdit) local password = guiGetText(registerEdit) if username~="" and password~="" then --check if there's a string it them triggerServerEvent("register",localPlayer, username, password) end end end addEventHandler("onClientGUIClick", registerButton, clientRegister) --false not needed
  8. ok, Root(getRootElement()) is all the elements in the server (basically) but if you put it in a addEventHandler() client-sided then it would only apply for the localPlayer or the player viewing what ever they're viewing, but if it's added server-sided then it means all the elements, but if the elements are created by the server then those would receive what's happening in the addEventHandler.
  9. Here's a crash: http://pastebin.com/hLAtyVEt
  10. Jaysds1

    Friendly fire

    like this: addEventHandler("onResourceStart",resourceRoot,function() createTeam("Default") end) addEventHandler("onPlayerJoin",root,function() setPlayerTeam(source,getTeamFromName("Default")) end)
  11. Jaysds1

    Friendly fire

    you could make them spawn on a default team.
  12. hmmm, try this patch: http://files.mtasa.com/apps/tools/gtasapatch_final.zip
  13. ok,ok I suck at jokes... What could I say
  14. Jaysds1

    continuous lag

    Try lowering your video settings. or play around with it.
  15. Do you have any mods? Does this happen on one server? When did this error started occurring?
  16. NICE, I forgot who owns that server, but if I was them, I would be amazed.
  17. Well, I kinda thought it was nice.
  18. Well, I like both MTA and DYOM, But MTA goes beyond that, so... I'm going with MTA
  19. , There's a screenshot system? Where? Joking...
  20. Jaysds1

    MTA:SA 1.4

    Well, you could come to the irc once in awhile and see what they're talking about... they have so much random/different topics, but sometimes, they bring up MTA stuff.
  21. Jaysds1

    MTA:SA 1.4

    MTA 1.4 is 1.3.1 but has more developments in it.
  22. Sorry, but that's not even close to what you want, if I was you, I would start learning LUA, if you actually start learning then you would see it's not hard to make something as simple as this. viewtopic.php?f=148&t=40809
  23. ya, you could have one unmodified GTA then download MTA for that, then have one modified and a downloaded MTA for it. BTW, this would take up a huge space on your computer.
×
×
  • Create New...