- 
                Posts161
- 
                Joined
- 
                Last visited
Everything posted by FWCentral
- 
	in your mtaserver.conf did you add the module?
- 
	I kinda like the idea of when the player leaves the server the vehicle is "impounded" and they can go to an impound to get it out, That's how we have the vehicle system in our server but that's just an idea, good luck with your server nwmafia and i respect that you didn't use vG scripts.
- 
	Hey im trying to split a string into two parts the string will always have a space like this example: "Data1 Data2" How can i make it like this: local data1,data2 = Data1, Data2 i tried: local data1, data2 = table.concat(thestring, ", ") Found the answer: Use the Lua split function.
- 
	Yeah it is solved thanks anyway guys
- 
	Nevermind im using the particle system
- 
	Hey everyone, I was wondering is it possible to use the red smoke from the stunt plane or is there any other red/colored smoke? Not the white one from the smoke generator object.
- 
	Yes you are right Crystal its not the database error its the nam, function onLogin(source) -- using it like this onPlayerLogin was the problem.
- 
	Well this is what i use for my spawn system and it works fine; local teams = executeSQLQuery("SELECT team FROM Spawn WHERE name = ? AND city = ?",tostring(spawn), tostring( location )) Ill test the one you put Crystal and get back.
- 
	But the data is in the name field i can't see any problem
- 
	Sorry yes it's a table and the "govName" is a field but that's not the problem as far as i know.
- 
	There is an error here in the debug script : Database query failed: No such column: false Attempt to the length of local 'gname' (a boolean value) The database "Government_members" exists and so does "govName" local nam = getAccountName(getPlayerAccount(player)) local gname = executeSQLQuery("SELECT govName FROM Government_members WHERE name = ?", nam) if #gname >= 1 then
- 
	My bad i was asleep and no i obviously didn't read it.
- 
	hisName = guiGridListGetItemText( GUIEditor_Grid[1], selectedRow, selectedCol ) local pl = getPlayerFromName(hisName) hisSerial = getPlayerSerial( pl ) hisMoney = getPlayerMoney( pl ) hisPing = getPlayerPing( pl )
- 
	Edit: works fine thanks
- 
	if type(namei) == string then local name = namei else local name = table.concat(namei, " ") end I tried that but didn't work
- 
	The title pretty much says it all, I need to check if something is a string or a table, Here's what i tried; if namei == string then local name = namei else local name = table.concat(namei, " ") end but it still says in the debug table expected?
- 
	Neither it doesn't need it IMO.
- 
	Yes its mic support only, Also the "I give you Skypse:" was from the original forum post Samer was just sharing something from our server
- 
	No problem we all start somewhere, Best place is the wiki here: https://wiki.multitheftauto.com/wiki/.
- 
	function PedDamage() outputChatBox end addEventHandler("onClientPedDamage", getRootElement(), PedDamage) Its client side.
- 
	Im creating a colshape and when i put this: createColRectangle(46,-20, 6 , 2) it creates the col shape fine but when im in dev mode and type /showcol 1 the col is on the ground but goes very high its higher than i can even go but i want the height to only be 2? Also if i have the coordinates of a rectangle col shape saved how can i make a radar area the same as the col using the positions from the colshape? it really been bugging me
- 
	executeSQLCreateTable(“peds“, “posx REAL, posy REAL, posz REAL“) Thats what you need to put im on mobile it might be wrong.
- 
	to get the players name that's selling to put it in the thearmsmark[seller] part and for some reason if a player stands in front of the seller then they type /sell they can /buy
- 
	Why what else is needed? the rest is just the gui and giving weapons+money and removing all of the markers that are "ownedby" the player
- 
	No i mean 1. I type /sell - It creates the marker and players can come and /buy 2. I stop selling the marker is destroyed 3. i try to /sell again - the marker comes but when a player types /buy they cant

 
        