Jump to content

problem loginscreen please help


zombienation

Recommended Posts

hello,

i have one irritating problem with loginscreens,

how can i make it possible for players to register when they are on the loginscreen?

with every different script i try, it always says its not possible to register when somebody try..

does anybody had this problem once? or knows how to help me out with this one?

i've searched on mta wiki but didn't found anything :(

thank you

Link to comment
You could use my scripts in the Community Website, and BTW(By The Way) what's this problem and can you show us the script.

i have tried these scrips

https://community.multitheftauto.com/index.php?p= ... ils&id=803

https://community.multitheftauto.com/index.php?p= ... ils&id=617

https://community.multitheftauto.com/index.php?p= ... ls&id=1557

also sorry for the extra question, do you know how to start all resources in one command?

Link to comment
no, but you could make a script for it.

And here's my Login script:

https://community.multitheftauto.com/index.php?p=resources&s=details&id=2247

ok i'll search for it thank you...

i'll try your loginscreen now, but with every i try i get this message * An unknown error has occured! Please choose a different username/password and try again.

maybe there is something i need to change in one of the scripts somewhere?

Link to comment
Set the resource acl to admin.

u mean this?

can u pls tell me step by step what i have to do? i'm searching for more then an hour now for this one small issue :(

ya, put this in there

<object name="resource.jl"></object> 

and did you put addAccount [uSERNAME] [PASSWORD] in the console?

Link to comment
Set the resource acl to admin.

u mean this?

can u pls tell me step by step what i have to do? i'm searching for more then an hour now for this one small issue :(

ya, put this in there

<object name="resource.jl"></object> 

and did you put addAccount [uSERNAME] [PASSWORD] in the console?

yes i did, the problem was only this

everything is smoothly now :)

thanks for all the help here

Link to comment

client

  
local ussername =guiCreateEdit ( float x, float y, float width, float height, string text, bool relative, [element parent = nil] ) 
  
local pass = guiCreateEdit ( float x, float y, float width, float height, string text, bool relative, [element parent = nil] ) 
  
local button =  guiCreateButton ( float x, float y, float width, float height, string text, bool relative, [ element parent = nil ] ) 
  
function login() 
local name = guiGetText(ussername) 
local password = guiGetText(pass) 
triggerServerEvent("login",getLocalPlayer(),name,password) 
end 
addEventHandler ( "onClientGUIClick", button, login ) 

server

addEvent("login",true) 
function loginplayer(account,password) 
logIn (source, account, password) 
end 
addEventHandler("login",getRootElement(),loginplayer) 
  
  
  

Link to comment
can u show me a tutorial somewhere of combining scripts please? i'm sorry for asking, but i cant find it ( my english isnt perfect and everything is in english and i dont know my way to a tutorial for combining scripts)

thank you :)

I think he means about putting scripts in resources,

Here's the first thing:

<meta> 
<info author="YOU" Description="YOUR DESCRIPTION" Version="VERSION IN #'S" type="TYPE OF RESOURCE" /> 
<script src="Client.lua" type="Client" /> 
<script src="Server.lua" type="Server" /> 
</meta> 

EDIT: I was talking to the Zombie guy, srry about not adding the quote

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...