Jump to content

مسأعدة .


#FeldMan

Recommended Posts

أبي أسوي أيديت بوكس لما تكتب فيه شي وتضغط زر يغير اسمك للي كتبته 

ملأحظة السيت بلأير نأمي سيرفر لهيك أبي شي يساعدني عشان اسوي كذأ  :

		local dd = guiGetText ( GUIEditor.edit[1] )

 

Link to comment
-- كلنت 
addEventHandler("onClientGUIClick",root,
function ()
if source == button then 
text = guiGetText(...)

if text ~= "" then 

triggerServerEvent("onPlayerchangename3",localPlayer,text)

end 
end
end
)











--- سيرفر 

addEvent("onPlayerchangename3",true)
addEventHandler("onPlayerchangename3",root,
function (text)
setPlayerName(source,...)
end
)

-- طبعا كود ناقص انت حاول فيها عشان تعرف وتعلم

 

Link to comment
17 minutes ago, Ahmed Ly said:

-- كلنت 
addEventHandler("onClientGUIClick",root,
function ()
if source == button then 
text = guiGetText(...)

if text ~= "" then 

triggerServerEvent("onPlayerchangename3",localPlayer,text)

end 
end
end
)











--- سيرفر 

addEvent("onPlayerchangename3",true)
addEventHandler("onPlayerchangename3",root,
function (text)
setPlayerName(source,...)
end
)

-- طبعا كود ناقص انت حاول فيها عشان تعرف وتعلم

 

مشكور عرفت أسويه 

  • Like 1
Link to comment

القسم الخطا

@N3xT

يرجي النقل لقسم البرمجة

+

لازم تشوف الويكي اولا عشان لا يحصل مشاكل

setPlayerName

Server-only function
 

 

This function changes the specified player's name. Note that any change made to a players name with this function is not saved in their settings so the name change only lasts till they disconnect

  • Minimal player name length is 1 character.
  • Maximum player name length is 22 characters.
  • Player names are case-insensitive. It is not possible to have two clients with same name but different character case.

عشان كدا سوي التحققين دول

len = utf8.len( guiGetText( yourEditBox ) )
if( len > 1 and len <= 22 ) then
  -- باقي كود الاخ احمد
end

 

Edited by KillerX
  • Like 1
Link to comment
22 hours ago, Ahmed Ly said:

-- كلنت 
addEventHandler("onClientGUIClick",root,
function ()
if source == button then 
text = guiGetText(...)

if text ~= "" then 

triggerServerEvent("onPlayerchangename3",localPlayer,text)

end 
end
end
)











--- سيرفر 

addEvent("onPlayerchangename3",true)
addEventHandler("onPlayerchangename3",root,
function (text)
setPlayerName(source,...)
end
)

-- طبعا كود ناقص انت حاول فيها عشان تعرف وتعلم

 

;"v حطله حدود طيب, مثلاً أقصى حروف في ايديت بوكس 12 ..
عشان لا يصير بق.

Link to comment
2 hours ago, DABL said:

;"v حطله حدود طيب, مثلاً أقصى حروف في ايديت بوكس 12 ..
عشان لا يصير بق.

 

On 03/02/2019 at 03:26, KillerX said:

القسم الخطا

@N3xT

يرجي النقل لقسم البرمجة

+

لازم تشوف الويكي اولا عشان لا يحصل مشاكل

setPlayerName

Server-only function
 

 

This function changes the specified player's name. Note that any change made to a players name with this function is not saved in their settings so the name change only lasts till they disconnect

  • Minimal player name length is 1 character.
  • Maximum player name length is 22 characters.
  • Player names are case-insensitive. It is not possible to have two clients with same name but different character case.

عشان كدا سوي التحققين دول


len = utf8.len( guiGetText( yourEditBox ) )
if( len > 1 and len <= 22 ) then
  -- باقي كود الاخ احمد
end

 

 

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...