Jump to content

dontdo

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by dontdo

  1. المهم ازاي اربط السيرفر بداتا بيز معينة
  2. احب ان اشكرك في البدايه انا شفت كل هذه الشروحات قبل ما اطلب المساعدة بس مفهمتش حاجة كلهم بيعطو امثال مفيش حد بيشرح
  3. لو سمحتم انا مبفهمش خالص في الداتا بيز فمنين ابدا اتعلم كيف استخدمها
  4. show me all code. Send it private message. Solved, Thanks
  5. I already did that it's a part of the script (where the problem is ) not the whole script
  6. Hello , how to check if account is already registered before , i tried using get Account but it always ouputs Registered even if the account was registered before . so what should i do . local acco = getAccount ( Reg_acc ) if (acco) then -- If Registered Account Already existing outputChatBox ("Change User") else -- If not existing outputChatBox ("Registerd")
  7. dontdo

    logIn

    function LoginBTN (acc,pw) if (getAccount (acc,pw)) then logIn ( client, acc, pw ) --- ERROR HERE outputChatBox ("Exsiting") spawnPlayer ( client, -2172.79419, 500.00000, 35.17188 ) setCameraTarget ( client ) triggerClientEvent (client,"hide",client) else outputChatBox ("Not Exsiting") end end addEvent ("login",true) addEventHandler( "login", getRootElement(),LoginBTN) -- Server There is a preblom with logIn function function btns() local acc = guiGetText (email_txt) local pw = guiGetText (password_txt) if (source == Login_btn) then triggerServerEvent ("login",localPlayer,acc,pw) end end addEventHandler ( "onClientGUIClick", root, btns ) -Client
  8. No, i want to connect it with the server.lua file
  9. function btns() local acc = guiGetText (email_txt) local pw = guiGetText (password_txt) if (source == Login_btn) then end end addEventHandler ( "onClientGUIClick", root, btns ) how to use server side function after if condtion ?
  10. Can't unlock vehicles in the colSphere function Lock (EnterPerson) local car = getPedOccupiedVehicle (EnterPerson) local x,y,z = getElementPosition( EnterPerson ) local col = createColSphere ( x,y,z, 10 ) local veh = getElementsWithinColShape (col, "vehicle") if isPedInVehicle ( EnterPerson ) then setVehicleLocked (car, true) outputChatBox ("locked", EnterPerson) end if isPedInVehicle ( EnterPerson ) == false then setVehicleLocked (veh, false) outputChatBox ("Unlocked", EnterPerson) end end addCommandHandler ("Lock", Lock, false , false)
  11. dontdo

    Simple Script

    addEventHandler ( "onVehicleEnter", getRootElement(), cancelEvent) Why it's not working ?
×
×
  • Create New...