Jump to content

Karuzo

Members
  • Posts

    1,213
  • Joined

  • Last visited

Everything posted by Karuzo

  1. Errors in debugscript 3 ?
  2. Just go for the UV Scroll shader. https://wiki.multitheftauto.com/wiki/Shader_examples
  3. Yes it is . The error is as i said :
  4. It says that i trigger serverside onRequestRegister but that the event isn't added serverside.
  5. Hey Guys, as the title says i have a problem with triggering from client-side to server-side. Client: username = SpielerName password = guiGetText(Register.label[1]) passwordConfirm = guiGetText(Register.label[2]) triggerServerEvent("onRequestRegister",getLocalPlayer(),username,password,passwordConfirm) Server : function registerPlayer(username,password,passwordConfirm) if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then outputChatBox ("#00FF00Herzlich Willkommen!! [username: #FFFFFF" .. username .. " #00FF00| Passwort: #FFFFFF" .. password .. "#00FF00 ]",source,255,255,255,true ) else outputChatBox("Bitte versuche es wieder mit einem anderen Usernamen und Passwort!!", thePlayer, 255, 0, 0) end else outputChatBox("Dieser Name existiert bereits!!", thePlayer, 255, 0, 0) end else outputChatBox("Die Passwörter stimmen nicht überein!!", thePlayer, 255, 0, 0) end else outputChatBox("Du musst dein Passwort nochmal eingeben!", thePlayer, 255, 0, 0) end else outputChatBox("Du musst dein Passwort eingeben!", thePlayer, 255, 0, 0) end else outputChatBox("Du musst deinen Namen eingeben!", thePlayer, 255, 0, 0) end end addEvent("onRequestRegister",true) addEventHandler("onRequestRegister",getRootElement(),registerPlayer)
  6. Hmm, not really hard but pretty nice that you'll release it!
  7. Hmm, well i have a webspace from cwcity.de and that doesn't really help me ._. Someone?
  8. Oh yea didn't think about that. How do i allow them ?
  9. This is the exported connect function : function woltlab_connect ( dbHost, dbUsername, dbPasswort, dbName ) executer = mysql_connect ( dbHost, dbUsername, dbPasswort, dbName ) if not executer then outputDebugString ( "Fehler[100]: Konnte keine Verbindung zur Datenbank aufbauen!" ) fileAppend ( "c", getLogTime(), "Fehler[100]: Konnte keine Verbindung zur Datenbank aufbauen!" ) return false else fileAppend ( "d", getLogTime()," Mit Datenbank verbunden!" ) return true end end
  10. I'm running the resource. What do you mean by client-server ? I'm getting the Name clientsided and sending it to the server.
  11. Yea i know . I have a Login Panel with 2 edit boxes. a username edit box and a password edit box. I get the content of the edit boxes with guiGetText , and trigger them to the Server-Side. That's why i'm triggering. Hope you could understand me
  12. Ye the resource just says it can't connect to the database. But the dbName, dbHost ,etc.. are all correct.
  13. We're not making it for you. We just give you some help how you could do it.
  14. Hey Guys. So i have a little problem, i want to connect my wbb forum with my server. Code : exports.woltlab:woltlab_connect ( "*****", "****", "****", "****" ) function CheckUsernameS() local login = exports.woltlab:woltlab_userExists (triggerClientEvent("SendUsername, client")) if login == true then exports.woltlab:woltlab_checkPassword(login, triggerClientEvent(SendPassword)) outputChatBox("Name is right") else outputChatBox("Name is wrong.") end end
  15. Well i mean if you have the AC_clothes started. Because the skin is setted by them. If it isn't bought it just will set the Skin to 0. local skinID = exports["AC_clothes"]:getBoughtSkin ( client ) or getElementModel( client ) or 0
  16. You have AC_clothes started ?
  17. You should read this. https://wiki.multitheftauto.com/wiki/Sc ... troduction
  18. I've been searching a long time and didn't understand it. So i opened a thread that people may help me. B2T: pa3ck thank you , i think i ve now understood it. If ive got more questions ill post them here.
  19. Do you have References to show us ? btw i think this is the wrong board.
  20. Could someone explain it to me please ?
×
×
  • Create New...