codeluaeveryday Posted February 11, 2012 Posted February 11, 2012 (edited) *FINSHED* Edited February 12, 2012 by Guest Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
Castillo Posted February 11, 2012 Posted February 11, 2012 "logIn", "getAccount" functions are server side and your script is all client side. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
codeluaeveryday Posted February 11, 2012 Author 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? Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
Castillo Posted February 11, 2012 Posted February 11, 2012 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. Education is the most powerful weapon which you can use to change the world.
codeluaeveryday Posted February 11, 2012 Author Posted February 11, 2012 Ohk. Thanks for that. Still when i reconnect the xml file resets all childs... Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
Castillo Posted February 11, 2012 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
codeluaeveryday Posted February 11, 2012 Author Posted February 11, 2012 Argg, thanks, just got back from Australian Cricket, i absolutely flogged em! Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
Castillo Posted February 11, 2012 Posted February 11, 2012 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
codeluaeveryday Posted February 12, 2012 Author Posted February 12, 2012 (edited) *FINSHED* Edited February 12, 2012 by Guest Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
Evil-Cod3r Posted February 12, 2012 Posted February 12, 2012 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)
codeluaeveryday Posted February 12, 2012 Author 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? Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
TAPL Posted February 12, 2012 Posted February 12, 2012 onClientPlayerJoin Event is wrong, you must use onClientResourceStart
codeluaeveryday Posted February 12, 2012 Author 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. Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
TAPL Posted February 12, 2012 Posted February 12, 2012 also change source to getLocalPlayer() and outputChatBox in Client don't required element so remove source from it
codeluaeveryday Posted February 12, 2012 Author Posted February 12, 2012 Tapl its fine, i have already finished it... Releasing soon. No more replies! Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
Recommended Posts