-
Posts
768 -
Joined
-
Last visited
Everything posted by Drakath
-
You could use: setAccountData getAccountData
-
getPlayerName getPlayerPing getElementData( player, group ) --Needs an additional script to set the group element data. getElementData( player, playtime ) --Needs an additional script to set the play time element data.
-
There is 'setAccountPassword' so why not make 'setAccountUsername'.
-
********** Almost works except that when I enter the car, I get network trouble.
-
I can't do that. Are you telling me that the code I posted is correct?
-
I can't do that. Are you telling me that the code I posted is correct?
-
When a player enters a car, this happens: setElementID (vehicle, getAccountName (getPlayerAccount(p))) Vehicle is: local vehicle = createVehicle ( 436, 200.54362, 1821.50317, 17.64063 )
-
If I remove: local acc = getAccountName (getPlayerAccount (player)) How do you suppose the script to check if it is player's car? if not (acc == id) then
-
When someone enters 'vehicle' : setElementID (vehicle, getAccountName (getPlayerAccount(p))) *************** But other players can still hijack the vehicle. Why?
-
I noticed that event handler 'onVehicleStartEnter' has an integer 'seat'. So I decided to make a script to lock only the driver's seat. But how do I define the seat? I can't use 'getPedOccupiedVehicleSeat' because the player would be already in the car. I guess this wouldn't work: if seat == 0 then
-
I shut down the Server and the map editor started. Why? Should I still fix my database? I've fixed it several times in past few months.
-
How do I know if it's locked or damaged? Could it be locked because I am running a Server?
-
================================================================== = Multi Theft Auto: San Andreas v1.3.4 ================================================================== = Server name : Map Editor Server = Server IP address: = Server port : 22010 = = Log file : ..rver/mods/deathmatch/logs/editor_server.log = Maximum players : 1 = HTTP port : 22011 = Voice Chat : Disabled = Bandwidth saving : Medium ================================================================== [00:38:04] ERROR: no such table: write_test [00:38:04] ERROR: Errors were encountered updating 'internal.db' database [00:38:04] ERROR: Database might be locked by another process, or damaged. [00:38:04] ERROR: See - https://wiki.multitheftauto.com/wiki/fixdb [00:38:04] ERROR: ************************ [00:38:04] Server stopped! Error: Could not start local server. [Error loading mod]
-
How can this help? The error appeared when I made savePass function and I also noticed that it works if I change this: function savePass() local xmlFile = xmlLoadFile(xmlFileName) if guiCheckBoxGetSelected(PasswordSave) then xmlNodeSetAttribute(xmlFile,"password",tostring(guiGetText(editPassword))) xmlSaveFile(xmlFile) xmlUnloadFile(xmlFile) elseif not guiCheckBoxGetSelected(PasswordSave) then xmlNodeSetAttribute(xmlFile,"password","") xmlSaveFile(xmlFile) xmlUnloadFile(xmlFile) end end into this: function savePass() local xmlFile = xmlLoadFile(xmlFileName) if guiCheckBoxGetSelected(PasswordSave) then xmlNodeSetAttribute(xmlFile,"password",tostring(guiGetText(editPassword))) xmlSaveFile(xmlFile) xmlUnloadFile(xmlFile) end end However the password will always be saved if I do this. I need it to set the password to "" when checkbox is unchecked.
-
When they join to check if they have a settings.xml file and when they click the login button.
-
xmlFileHandler but it happened when I made savePass
-
I'm getting stack overflow error. It happened when I made this function: function savePass() local xmlFile = xmlLoadFile(xmlFileName) if guiCheckBoxGetSelected(PasswordSave) then xmlNodeSetAttribute(xmlFile,"password",tostring(guiGetText(editPassword))) xmlSaveFile(xmlFile) xmlUnloadFile(xmlFile) elseif not guiCheckBoxGetSelected(PasswordSave) then xmlNodeSetAttribute(xmlFile,"password","") xmlSaveFile(xmlFile) xmlUnloadFile(xmlFile) end end addEventHandler("onClientGUIClick",btnLogin,savePass) It says that the error is on line 285 which is: xmlSaveFile(xmlFile) function xmlFileHandler(gReturn) local xmlFile = xmlLoadFile(xmlFileName) if not xmlFile then xmlFile = xmlCreateFile(xmlFileName,"settings") end xmlSaveFile(xmlFile) xmlUnloadFile(xmlFile) if (gReturn) then if (gReturn == true) then loginPanel() else return end end end
-
Oh, I used client0 and it was clientO. My bad. Thanks.
-
Strange, it used to work before.