Jump to content

TheNightRider

Members
  • Posts

    180
  • Joined

  • Last visited

Everything posted by TheNightRider

  1. Thanks could I setup a mysql server on the same computer?
  2. Hi there, I have been working on a home server, running on windows I have added "" to my mtaserverconf file as first to startup. I have added "mta_mysql.dll" in the following location "\Users\User\Desktop\MTA San Andreas\server\mods\deathmatch\modules" However I get "ERROR: unable to connect to mysql: <2005> Unknown MySQL server host 'IP/DOMAIN' <11004> Could someone please help me to get this working? It is the first time for me to use SQL on MTA lol Thanks
  3. Hey I could not help notice the carrier cannot travel when someone parks Hydra, Hunter etc. Is there anyway of stopping this from happering? Thanks
  4. That's awesome thanks. I think ive played along side you in Mini Missions in the past Thanks for the reply that was most helpful.
  5. Hi there, I have a problem with my code, its just simple triggering but I dont know why it doesn't works -- Server sided root = getRootElement() function gW(gid,gammo) giveWeapon(source,gid,gammo) end addEvent("giveW",true) addEventHandler("giveW",root,gW) -- client sided function giveWeapon(wID,wAmmo) triggerServerEvent("giveW",getLocalPlayer(),id,ammo) end I am trying to use it as, --client function onSpawn() gang = guiGridListGetSelectedItem(gangName) skin = guiGridListGetSelectedItem(gangSkins) if gang == grove then giveWeapon(22,100) giveWeapon(29,300) giveWeapon(30,350) giveWeapon(27,99) if skin == skin1 then spawnSkin = 105 elseif skin == skin2 then spawnSkin = 106 elseif skin == skin3 then spawnSkin = 107 elseif skin == skin4 then spawnSkin = 207 end end end ---there are more --- event I am using is addEventHandler("onClientGUIClick",button,onSpawn,false) and trying to give the weapon when player spawns Thanks
×
×
  • Create New...