Jump to content

Phoenix-Roleplay

Members
  • Content Count

    92
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Phoenix-Roleplay

  • Rank
    Punk-@ss B*tch

Details

  • Gang
    Phoenix Games
  1. Resolved. Needed to do a work around and pull the data like so: local respPosT = {0,0,0,0,0,0} local respPos = getElementData(theVehicle, "respawnposition") if (type(respPos) == "table")) then respPosT = respPos end local x, y, z, rx, ry, rz = unpack(respPosT)
  2. Not sure if you fully understood me but I did a outputDebugString and it returned the table outputDebugString(x.." "..y.." "..z.." "..rx.." "..ry.." "..rz)
  3. Somehow this does not want to unpack properly yet, does at the same time.. local resppos = getElementData(theVehicle, "respawnposition") local x, y, z, rx, ry, rz = unpack(resppos) What I mean by this is, if I debug and tell it to output: "outputDebugString(x.." "..y.." "..z)" it outputs all the data. I even did if not x or not y or not z or not rx or not ry or not rz then outputDebugString("This is the issue here.") end and nothing was output so I put else outputDebugString("This is somehow the issue.") end and it output the data there. And when I look at the debug
  4. Right. And thats all I want it to do, is work for the commands I have scripted.
  5. Yep, I know. My server doesn't use the ACL so much, it uses a SQL to check for admin. It's a completely seperate basis for the server.
  6. Simple problem, I am not familiar with using executeCommandHandler nor working with using "..." but it just fails to execute everytime. local execcmd = nil function executeCommand(thePlayer, commandName, exeCmd, targetPlayer, ...) if(exports.global:isPlayerOwner(thePlayer))then if not (exeCmd) or not (targetPlayer) then outputChatBox("Syntax: /"..commandName.." [player id] [cmd name] [arguments]", thePlayer, 255, 0, 0) return end if(...)then execcmd = executeCommandHandler(exeCmd,targetPlayer,...) if(execcmd
  7. Thanks so much qais you helped me perfectly! Could not have been any better or any quicker! I will definitely be in contact with you again if I need more work!
  8. OK. So I am not exactly sure the issue here, but it fails to show the photo to anyone. Client: addEvent("onMyClientScreenShot",true) addEventHandler( "onMyClientScreenShot", resourceRoot, function( pixels ) if image then destroyElement(image) end image = dxCreateTexture( pixels ) daPic() end ) --local screen = dxCreateScreenSource ( 340, 380 ); local sWidth,sHeight = guiGetScreenSize() function daPic() dxUpdateScreenSource(image); addEventHandler("onClientRender", root, showSpeedPic) setTimer(removeDaAnnoyi
  9. Hello MTA, I have another small issue on my hand, but not so much an issue. Using dxCreateScreenSource is there a way to transmit the taken image from one clients screen and send the same image to other players? I am working on a speedcam that takes a photo of the player who sped and want to transit the image to every police on duty, the image displays to all police and to the violator only the police receive an image of themselves.
  10. Are kidding me Liam! Of course I remember you! You need to add me on Skype, I rarely get on Facebook or anything anymore. Thanks so much by the way! Take care. Regards, Chris Canfield
  11. This thread is getting interesting...
  12. Hey MTA! I just was toying around with Fraps and Windows Live Movie Maker, and I decided to make a video for a friend who has a car mod and showing my roleplay server under development. Thoughts and suggestions for my next video?
  13. @Cadu, can you send me a SS of what it displays IG? EDIT: Wait, nevermind I got it fully functional now using the fetch_assoc! Thanks so much everyone, special thanks to Cadu!
  14. I'll try that but if I am not mistaken, the row = mysql_fetch_rows should do that for me? EDIT: Yea, same problem. Doesn't seem to withdraw the date from row["admin"]
  15. Interesting find, pasted the EXACT code and I get this ERROR: pf\s_main.lua:17: attempt to index local `row` (a nil value) EDIT: Upon further inspection, row["admin"] is failing to be set at all.
×
×
  • Create New...