-
Posts
1,193 -
Joined
-
Last visited
Everything posted by tosfera
-
Yeah like, what should I do; Use a sqlite db or just setup a sql server from microsoft and use that. edit: You got 2 ways to connect to a database, sqlite and MySQL. And My question is, wich is the most stable and best running one for a bigger project? https://wiki.multitheftauto.com/wiki/DbConnect
-
Its an unknown symbol for a namespace, so it wont run. If you use this; main::getCharInfo(); you'll get the function getCharInfo out of the class main
-
Btw, you have an overloaded method. You are requesting the account AND serial, but a serial is an unique value and bounded to a account/IP. So if you just delete the account with the serial, does that work?
-
Okee so the thing is, you can't remove it from your database, am I right? Okee so lets move on. You are converting both values to a string to prevert errors. Wont be wrong on that part. Can you tell me, what are these values that are placed into the Serial and Account? (Just comment the delete query and make an outputChatBox for the Serial + Account. Tell me the results.)
-
Best thing that I prefer to do so, is create an array in another array giving the X, Y, Z into it. The use a loop to get random info. Something like; local saves = { {"0","0","5","522"}, {"632","1253","51","522"}} local rand = math.rand(#saves); for i, item in ipairs(saves) do eventVehicle = createVehicle(item[4],item[1], item[2], item[3]); end
-
You want to have random cars spawned all over the place? Well the easiest thing is to use a math.random to get the X, Y's. And to place them into the xml first open and unload it; math.random xmlLoadFile xmlUnloadFile xmlNodeGetAttribute xmlNodeGetValue xmlNodeSetAttribute xmlNodeSetValue
-
Did you already try the easiest thing as a query? executeSQLQuery("DELETE FROM `Protection_System` WHERE `Serial` = ? AND Account = ?", tostring(Serial), tostring(Account) )
-
No one? Not even 50p, TAPL or solidsnake?
-
You want to spawn another car in another direction or change the position of the car to another direction? If so, then just use; setElementRotation
-
Hey guys, Right now I'm about to start a big project but something is keeping me from starting it. The project has a giant Database diagram and I'd like to hear everyones opinion about sqlite as a file, or a MS sql server. I'm not sure if there is a big differents between it, like I know that a MS sql server can handle alot more, but not sure if it affects the performance of your scripts. So what do you guys think I should use, I got around 15 to 16 table's with a sh*tload of data. A: Use sqlite because: .... B: Use a normal db because: .... Thanks in advanced!
-
Okee lets see; vehicle createVehicle ( int model, float x, float y, float z [, float rx, float ry, float rz, string numberplate, bool bDirection, int variant1, int variant2 ] ) The only things we are going to use are; int model = ID of the vehicle float x, y, z = the position of the car float rx, ry, rz = the rotation of the car You dont need anything else, so if you want the car to rotate to the north, do it like this; createVehicle(522, 0, 0, 5, 0, 0, 90); Thats all you need to do. Now its up to you to change your code into the new parameters from createVehicle
-
Okee, after these files replaced. it downloaded the latest patch and changed some things in my pc and it worked. Thanks!
-
Mind moving it to the right section? cause I can't find it. and the new diag still says the same; MTADiag v2.7.2 by Towncivilian MTA install path: C:\Program Files (x86)\MTA San Andreas 1.3 MTA version: 1.3.1-9.04943.0.000 GTA install path: H:\games\GTA - San Andreas DirectX is up-to-date. Missing GTA file: \audio\streams\CH Missing GTA file: \audio\streams\CO Missing GTA file: \audio\streams\CR Missing GTA file: \audio\streams\DS Missing GTA file: \audio\streams\HC Missing GTA file: \audio\streams\MH Missing GTA file: \audio\streams\MR Missing GTA file: \audio\streams\NJ Missing GTA file: \audio\streams\RE Missing GTA file: \audio\streams\RG Missing GTA file: \audio\streams\TK Your Grand Theft Auto installation is missing one or more files. Please reinstall GTA and see if MTA works then. Druk op een toets om door te gaan. . .
-
downlaoded mta from the official site and the gta did work before. It was like; 1 day it worked, the other day it didn't. :\
-
Thats the point, I reinstalled mta, didn't work. Reinstalled GTA. didn't work. The deinstalled both, installed gta, installed mta. didn't work. edit; I'll redownload gta *If you're a cop, or working for the law. You can't read this * edit2; the other downloaded one doesn't work either.
-
Okee since I didn't get a reply in the support section, i'll repost it here: I was tryingto run MTA just a few mins ago and It just changes my windows theme to basic(like always), starts loading, it shuts down and changes my theme back to win7 ult... I've tried to reinstall MTA, didn't work. Restarted my pc, didn't work. Scanned my pc on virusses, nothing there. Any idea? I've done a MTAdiag, and this came out: (just missing the radio's, but idc.) MTADiag v2.7.2 by Towncivilian MTA install path: C:\Program Files (x86)\MTA San Andreas 1.3 MTA version: 1.3.1-9.04943.0.000 GTA install path: H:\games\GTA - San Andreas DirectX is up-to-date. Missing GTA file: \audio\streams\CH Missing GTA file: \audio\streams\CO Missing GTA file: \audio\streams\CR Missing GTA file: \audio\streams\DS Missing GTA file: \audio\streams\HC Missing GTA file: \audio\streams\MH Missing GTA file: \audio\streams\MR Missing GTA file: \audio\streams\NJ Missing GTA file: \audio\streams\RE Missing GTA file: \audio\streams\RG Missing GTA file: \audio\streams\TK Your Grand Theft Auto installation is missing one or more files. Please reinstall GTA and see if MTA works then. Druk op een toets om door te gaan. . .
-
MTADiag v2.7.2 by Towncivilian MTA install path: C:\Program Files (x86)\MTA San Andreas 1.3 MTA version: 1.3.1-9.04943.0.000 GTA install path: H:\games\GTA - San Andreas DirectX is up-to-date. Missing GTA file: \audio\streams\CH Missing GTA file: \audio\streams\CO Missing GTA file: \audio\streams\CR Missing GTA file: \audio\streams\DS Missing GTA file: \audio\streams\HC Missing GTA file: \audio\streams\MH Missing GTA file: \audio\streams\MR Missing GTA file: \audio\streams\NJ Missing GTA file: \audio\streams\RE Missing GTA file: \audio\streams\RG Missing GTA file: \audio\streams\TK Your Grand Theft Auto installation is missing one or more files. Please reinstall GTA and see if MTA works then. Druk op een toets om door te gaan. . . But the missing files are the radio's. So I think thats not the problem cause it did work yesterday.
-
Hey, I was tryingto run MTA just a few mins ago and It just changes my windows theme to basic(like always), starts loading, it shuts down and changes my theme back to win7 ult... I've tried to reinstall MTA, didn't work. Restarted my pc, didn't work. Scanned my pc on virusses, nothing there. Any idea? Thanks
-
I know wich languages uses them, I'm known with; Java, Javascript (JS, Jquery, Ajax), asp.net, c#, c++, vb, php, html, sql, css, lua and some more small language's like x code. But I was more interested in the part where you said that it didn't matter for the preformance of the scripts. Cause in school they are trying to test me, it takes me 2 minutes to switch from lua to asp.net. Because of the ;. So if it doens't matter, I would rather do it then leave it. Mind make switching alot easier. Thanks!
-
Hey, I'm used to end my lines with a " ; " in other languages, does it have any inpact on the speed of loading scripts or security in them if you do use them in your lua codes? or is it more like; what you prefer? Thanks in advance!
-
why are you using playerName, and not getLocalPlayer()? local name = getPlayerName( getLocalPlayer() ) local team = getPlayerTeam( getLocalPlayer() ) local role = getElementData( getLocalPlayer() , "Role" ) local gang = getElementData ( getLocalPlayer() , "gang" ) or if you want to get it from a gridview list, just get the data out of the row you selected. Much easier.
-
try this; bodypartImage = { [3] = "torso.png", [4] = "ass.png", [5] = "leftarm.png", [6] = "rightarm.png", [7] = "leftleg.png", [8] = "rightleg.png", [9] = "head.png", } LoooooL? I'm not into this script at all, but single and double qoutes are important in alot of language's.
