#FeldMan Posted February 3, 2019 Share Posted February 3, 2019 أبي أسوي أيديت بوكس لما تكتب فيه شي وتضغط زر يغير اسمك للي كتبته ملأحظة السيت بلأير نأمي سيرفر لهيك أبي شي يساعدني عشان اسوي كذأ : local dd = guiGetText ( GUIEditor.edit[1] ) Link to comment
Ahmed Ly Posted February 3, 2019 Share Posted February 3, 2019 -- كلنت 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
#FeldMan Posted February 3, 2019 Author Share Posted February 3, 2019 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 ) -- طبعا كود ناقص انت حاول فيها عشان تعرف وتعلم مشكور عرفت أسويه 1 Link to comment
KillerX Posted February 3, 2019 Share Posted February 3, 2019 (edited) القسم الخطا @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 February 3, 2019 by KillerX 1 Link to comment
Ahmed Ly Posted February 3, 2019 Share Posted February 3, 2019 2 minutes ago, #FeldMan said: مشكور عرفت أسويه العفو Link to comment
Guest Posted February 4, 2019 Share Posted February 4, 2019 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
KillerX Posted February 4, 2019 Share Posted February 4, 2019 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
Guest Posted February 4, 2019 Share Posted February 4, 2019 2 hours ago, KillerX said: م شفت ض1 . Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now