codeluaeveryday Posted February 11, 2012 Share Posted February 11, 2012 (edited) *FINSHED* Edited February 12, 2012 by Guest Link to comment
Castillo Posted February 11, 2012 Share Posted February 11, 2012 "logIn", "getAccount" functions are server side and your script is all client side. Link to comment
codeluaeveryday Posted February 11, 2012 Author Share Posted February 11, 2012 Ohk. I can trigger that. Ill get back to you. I should still have the problem of it not saving the xml data on quit? Link to comment
Castillo Posted February 11, 2012 Share Posted February 11, 2012 Also you're doing: local isLoginTrue = logIn(getAccount(user,pass)) It should be: local isLoginTrue = getAccount(user,pass) Link to comment
codeluaeveryday Posted February 11, 2012 Author Share Posted February 11, 2012 Ohk. Thanks for that. Still when i reconnect the xml file resets all childs... Link to comment
Castillo Posted February 11, 2012 Share Posted February 11, 2012 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. Link to comment
codeluaeveryday Posted February 11, 2012 Author Share Posted February 11, 2012 Argg, thanks, just got back from Australian Cricket, i absolutely flogged em! Link to comment
codeluaeveryday Posted February 12, 2012 Author Share Posted February 12, 2012 (edited) *FINSHED* Edited February 12, 2012 by Guest Link to comment
Evil-Cod3r Posted February 12, 2012 Share Posted February 12, 2012 i dont got what is the problem outputChatBox or trigger or what ? Link to comment
codeluaeveryday Posted February 12, 2012 Author Share Posted February 12, 2012 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? Link to comment
TAPL Posted February 12, 2012 Share Posted February 12, 2012 onClientPlayerJoin Event is wrong, you must use onClientResourceStart Link to comment
codeluaeveryday Posted February 12, 2012 Author Share Posted February 12, 2012 Argg. I'd thought that was half the prob. I remember in my older post someone said onClientResourceStart will work. Thanks TAPL. Link to comment
TAPL Posted February 12, 2012 Share Posted February 12, 2012 also change source to getLocalPlayer() and outputChatBox in Client don't required element so remove source from it Link to comment
codeluaeveryday Posted February 12, 2012 Author Share Posted February 12, 2012 Tapl its fine, i have already finished it... Releasing soon. No more replies! Link to comment
Recommended Posts