Jump to content

[CLOSED] Auto Login


Recommended Posts

Posted

"logIn", "getAccount" functions are server side and your script is all client side.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Also you're doing:

local isLoginTrue = logIn(getAccount(user,pass)) 

It should be:

local isLoginTrue = getAccount(user,pass) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

That's because you're creating the XML file every time the resource starts, use

fileExists  

to check if the file exists, if not then create it.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

i dont got what is the problem outputChatBox or trigger or what ?

My in-game nick is |['Dev-PoinT_SA']|

addEventHandler ( "onPlayerSpawn", getRootElement(),

function()

if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then

triggerClientEvent("BlaBlaBla",getRootElement())

DxDrawText("Hi Dev-PoinT")

end

end)

Posted

Hmm, LOL. OK u can try to help me. I've added debug outputs to test which parts of the script work. Unfortunately my onClientPlayerJoin event handler will not outputChatBox or even work. So I'm going to go ahead and assume this is a Multi Theft Auto bug. Do you see where i'm going? Or is your English too poor to keep up with an A grade English student in Australia?

Posted

also change source to getLocalPlayer()

and outputChatBox in Client don't required element so remove source from it

CiTLh.png
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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