Jump to content

مساعدة بسيطة


Recommended Posts

السلام عليكم

جربت كتييييير و ما لقيت حل

function sendChatMessage()
	if supp_chat and isElement(supp_chat) then
		local newText = guiGetText(support_urmsg)
		if newText and string.len(newText) > 0 then
			local oldText = guiGetText(supp_chat)
			if not oldText then oldText = "" end
			oldText = oldText .. getPlayerName(g_LocalPlayer) .. ": " .. newText .. "\n"
			guiSetText(supp_chat, oldText)
			guiSetText(support_urmsg, "")
			guiMemoSetCaretIndex(supp_chat, string.len(oldText))

		end	
	end
end
addEventHandler("onClientGUIAccepted", g_ResourceRoot, sendChatMessage)

أشتغل على مود مساعدة 

لما اظغط على Enter

الرسالة ما تطلع ليش؟

Link to comment

ممكن تصحيح لهذا الكود؟

بدي اضيف الوقت قبل الإسم

			oldText = oldText  "..[""..hours.."-"..minute..""..second.." .." "" .. getPlayerName(localPlayer) .. ": " .. newText .. ""\n"

debug: unexpected symbol near ""..second..""

Link to comment
2 hours ago, Outlaw said:

debug: unexpected symbol near ""..second..""

oldText = ( ( oldText ) ..  "[" .. ( tostring ( hours ) ) .. "-" .. ( tostring ( minute ) ) .. "-" .. ( tostring ( second ) ) .. "]" ..  ( getPlayerName ( localPlayer ) ) .. ": " .. ( newText ) )

 

  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...