
Lordy
Members-
Posts
290 -
Joined
-
Last visited
Everything posted by Lordy
-
Have no idea what vivalavido tried, but TimJ, you are trying to warp a player into a string... local success=xmlNodeGetValue(node) and later on warpPlayerIntoVehicle ( playerSource, success ) Wiki gives this syntax: bool warpPlayerIntoVehicle ( player thePlayer, vehicle theVehicle, [ int seat=0 ] ) Which means that you need to put a variable pointing at vehicle element to the second place not a string. And to be honest, you don't have playerSource variable defined anywhere either, so basically you are doing warpPlayerIntoVehicle(nil, "somestring") No wonder it doesn't work.. And on another look you actually do warpPlayerIntoVehicle(nil, nil) since you defined local success = blah inside an if statement.. Which means that it doesn't exist outside it EDIT: If you can say what you want to achieve with the script, we might help a bit more than only find errors in your script.
-
Is the source or the player variable actually a player element too? You can test it with outputChatBox(tostring(player)) inside the xml function. If it's player, it outputs some userdata value to chatbox
-
However you can just change your weapon with the scroll and change back too and it's reloaded. But it's a nice idea tho..
-
I think that they assume that since there is DM in it's name, everything is about deathmatching in MTA:DM. And completely not even knowing that you can have the exact same race in MTA:DM too, which is even better than in MTA:Race There is no reason to keep playing on Race because MTA:DM has race too in it (the race resource tho)
-
Yea, use a nightly for example
-
What mission? They are always there. Mission in the video. And they are there ONLY during that mission. Black Project has them The part when you sneak into Vietnamese container ship has them Police Maveric has it. I've not been to area69 in night so I don't know if they are there in normal game too..
-
I don't think that anyone just predicts the lag.. they are just used to desync and change their playing style.. Like I'm already used to shooting just ahead of a moving player (or hitting a nightstick if I want to arrest him). On the other hand, some skills that I lack is that if I get one on one gunfight with someone openly, I don't take cover, but I shoot till he or I am dead.. Even if i win, I still lose lot's of hp so anyone else can finish me off quickly. Then there are ways to make the opponent hard to aim at you, like running in circles with a minismg and aiming /shooting at the opponent, who will not be running, since he tries to aim you.. Usually they get finished off quite quickly.
-
Would be a useful hobby to pay attention before you start complaining about mta to be fucked
-
I'm just clearing it up shouldn't it be table.concat({...}, " ") instead of table.concat(arg, " ") ? Does arg already mean all the arguments in a table?
-
If you don't know any lua, it'll be difficult You best bet would be to start from http://development.mtasa.com/index.php? ... troduction I think.. That's how I learned lua (I'm not stating that I can code anything good yet tho )
-
Ace_Gambit: The client variable is allowed too.. It's passed with triggerServerEvent() as the local player. You don't always pass localPlayer as source, now do you? I agree that I didn't look too much into that code, BUT you didn't mention what kind of problems you were having too, and my crystal ball seems to be out of order atm.
-
Umm.. your joinhandler function only does a fadeCamera and outputChatBox, nothing else. To make it login too, you have to code it as such too
-
What is not working? Would help us to help And lua is case sensitive, so Flash() isn't same as flash()
-
You have to bind the vehicle element to your client element. Possibly with setElementData or tables. Then getElementPosition to get your coords and setElementPosition to set the car's position next you. Then you also have to apply your rotation and warp urself into that car maybe if you want. Or did you mean anything else?
-
You can make an array maybe.. table_userData[thePlayer] = data and then with call () you can trigger it for other resources too.
-
Are you sure that player element changes on nick change? I don't think so. And it's triggerClientEvent() not triggerClientEventHandler() client addEvent("myEvent", true) addEventHandler("myEvent", getRootElement(), handlerFunction) server triggerClientEvent(thePlayer, "myEvent", getRootElement(), variable) I think it should work that way. Haven't checked my resources or wiki atm
-
And you have to escape the "" which you want to be in the file.. like so " would be \". variable = 1 string ="omg" functionName(variable, string.."\"quotemark") would return functionName(1, "omg"quotemark") But then the second " after omg would end it so you have to use the \" not " If I made any sense good, If I didn't, blame me, but I can't explain better
-
I wonder if it's loadstring, will the objectid[0] [user: XetaQuake ] [Nick: [GP_A]XetaQuake ] = createObject(2414, 2131.0314941406, 2137.0732421875, 9.671875, 0, 0, 0) need user: XetaQuake defined before? and nick: gp_a... Maybe it should work with objectid[0]["User: XetaQuake"]["Nick: [GP_A]XetaQuake" ] = createObject(2414, 2131.0314941406, 2137.0732421875, 9.671875, 0, 0, 0) And with defining the tables before too..
-
And you trigger it for all clients.. Although using the getlocalplayer in event handler is good too, it's better imo to trigger it only for the player who joined. Check the first argument on triggerclientevent from wiki.
-
If it's possible to save xmls with path "../../" then it should be possible to save those outside resources, right? Now I'm going to test if it is possible.. Just save in some other folder then
-
Yes.. if one logs onto the account, and is banned, it will kick.. "Your ping is too high", "timed out" etc. lol So the cheater won't think of creating a new account
-
bool triggerClientEvent ( [element triggerFor=getRootElement()], string name, element theElement, [arguments...] ) Please see the triggerFor argument if that is not defined, it triggers it for all clients
-
I believe this can't be done in SP either.. So tough luck
-
I think we are missing eachother talk a bit The cookies sys just stores the pw and username locally in client's computer, so he doesn't have to type it all the time.. He still has to push the login button.. So it likle autofills the edit boxes.. It's not some auto login or something, just making logging in easier.. EDIT: I just found out there was a typo on line 30 of my uploaded resource.. now fixed
-
@Gamesnert If it's server side SQLite then how do you identify a player.. by ip? The best way to store it to client is actually creating a file I think. I'll upload the resource to community site now.. Now uploaded. https://community.multitheftauto.com/index.php?p= ... ils&id=210 boolean setCookie (string cookiename, string cookievalue, string resource) string getCookie(string cookiename, string resource) The functions have to be called from clientside.