-
Posts
145 -
Joined
-
Last visited
Everything posted by Chronic
-
Post your code
-
'finalstring' was never defined
-
You're welcome
-
Quotes are used only for strings. For this table you are trying to add, you never defined it, so put this at the top of your script. languages = {}
-
It should work, be sure to have a second person with you on the server to test it out
-
[quote name=..&G:..]Same error... DXgui.status[1] = guiCreateLabel(4, 85, 606, 145, "Numar Telefon: " .. getElementData(thePlayer, "cellnumber") .. "\nPermis de Conducere: " .. carlicense .. "\nPort Arma: " .. gunlicense .. "\nVehicule (" .. numcars .. "): " .. string.sub(carids, 1, string.len(carids)-2).. "\nProprietati (" .. numproperties .. "): " .. string.sub(properties, 1, string.len("properties")-2) .. "\nOre jucate pe caracter: " .. hoursplayed .. " ora/e\nLimbi Vorbite: " .. table.concat(languages, ", ") .. "\nNumar de Securitate: ".. finalstring .."", false, DXgui.fereastra[1]) Should be Anywhere you're writing a string it has to be inside quotes (" ")
-
Should Be -- server function open(P) triggerClientEvent(P,"SeeGui",P) end addCommandHandler("gui",open) And the reason why you are getting that error is because string.len(properties) should be string.len("properties") since it's a string
-
Oh nevermind I thought you were trying to say something else
-
That wouldn't be a reason for a bad argument..
-
addEventHandler("onPlayerQuit", root, function () local selectedTeam = getTeamName(getPlayerTeam(source)) if selectedTeam then outputChatBox(selectedTeam.." quits") end end )
-
Ahh, thank you Made, that solved my problem!
-
Ok, I'ved dumbed my script down to just function spawn ( ) spawnPlayer ( source, 0, 0, 5 ) end addEventHandler ( "onPlayerJoin", getRootElement(), spawn ) But it still doesn't work?
-
Hmm, no idea why this isn't working. function spawn ( ) playerAccount = getPlayerAccount ( source ) skinid = getAccountData ( playerAccount, "skinid" ) if getAccountData ( playerAccount, "skinid" ) then spawnPlayer ( source, 0, 0, 5, 0, skinid ) elseif not getAccountData ( playerAccount, "skinid" ) then spawnPlayer ( source, 0, 0, 5 ) end end
-
No errors in the debug, just does not work. function spawn ( thePlayer ) playerAccount = getPlayerAccount ( thePlayer ) skinid = getAccountData ( playerAccount, "skinid" ) if getAccountData ( playerAccount, "skinid" ) then spawnPlayer ( 0, 0, 5, 0, skinid ) elseif not getAccountData ( playerAccount, "skinid" ) then spawnPlayer ( 0, 0, 5 ) end end addEventHandler ( "onPlayerJoin", getRootElement(), spawn ) What I mean is, it doesn't spawn me when I join, just a black screen.
-
Couldn't find it, oh well.
-
Is there a function that allows the HUD and changes the camera? I really want this
-
No I disabled all the resources except for the default ones. Before: http://i.imgur.com/OXmoItT.jpg After: http://i.imgur.com/xpDc6Ly.png As you can see the health, money disappear.
-
Is there any way to use setCameraMatrix and still have the HUD show? Or is there any other function that sets the Player's camera and have the HUD show? I tried using showPlayerHudComponent but it did nothing. Client: setCameraMatrix ( 0, 0, 5 ) showPlayerHudComponent ( "all", true )
-
Great idea Made! Although its just an aesthetic feature, I would love to add this to my server, and it can help the MTA Project!
-
Problem solved, the marker was too small
-
server, obviously. And yes, it's my entire code
-
chat doesn't output anything
