Jump to content

يا شباب شو خطا الكود


Recommended Posts

السلام عليكم

شباب شو خطا الكود يقلي فيه خطا وانا اشوف ما فيه خطا

كلينت

addEventHandler ( "onClientGUIClick", root, 
function (  ) 
  if source == pass then 
   local zz = guiGetText(edit2) 
   triggerServerEvent("zz", localPlayer, zz) 
  end 
end ) 

سيرفر

addEvent ( "zz", true ) 
 addEventHandler ( "zz",root, 
function ()  
setServerPassword ( tostring(zz) ) 
outputChatBox ( "Password changed successfully and become: "..tostring(getServerPassword()), source ) 
end 

Link to comment
السلام عليكم

شباب شو خطا الكود يقلي فيه خطا وانا اشوف ما فيه خطا

كلينت

addEventHandler ( "onClientGUIClick", root, 
function (  ) 
  if source == pass then 
   local zz = guiGetText(edit2) 
   triggerServerEvent("zz", localPlayer, zz) 
  end 
end ) 

سيرفر

addEvent ( "zz", true ) 
 addEventHandler ( "zz",root, 
function ()  
setServerPassword ( tostring(zz) ) 
outputChatBox ( "Password changed successfully and become: "..tostring(getServerPassword()), source ) 
end 

انت رسلت المتغير مع التريقر

لاكن ماعرفت بالفنكشن اللي بملف السيرفر

عرف zz بالفنكشن

addEvent ( "zz", true ) 
 addEventHandler ( "zz",root, 
function (zz)  
setServerPassword ( tostring(zz) ) 
outputChatBox ( "Password changed successfully and become: "..tostring(getServerPassword()), source ) 
end 

Link to comment

1439391290361.png

addEventHandler ( "onClientGUIClick", root, 
function (  ) 
  if source == pass then 
   local zz = guiGetText(edit2) 
   triggerServerEvent("password", localPlayer, zz) 
  end 
end ) 

addEvent ( "passowrd", true ) 
 addEventHandler ( "passowrd",root, 
function (zz)  
setServerPassword ( tostring(zz) ) 
outputChatBox ( "Password changed successfully and become: "..tostring(getServerPassword()), source ) 
end 
) 

Link to comment
1439391290361.png
addEventHandler ( "onClientGUIClick", root, 
function (  ) 
  if source == pass then 
   local zz = guiGetText(edit2) 
   triggerServerEvent("password", localPlayer, zz) 
  end 
end ) 

addEvent ( "passowrd", true ) 
 addEventHandler ( "passowrd",root, 
function (zz)  
setServerPassword ( tostring(zz) ) 
outputChatBox ( "Password changed successfully and become: "..tostring(getServerPassword()), source ) 
end 
) 

التعديل الجديد بس ما ظبط

Link to comment
1439391290361.png
addEventHandler ( "onClientGUIClick", root, 
function (  ) 
  if source == pass then 
   local zz = guiGetText(edit2) 
   triggerServerEvent("password", localPlayer, zz) 
  end 
end ) 

addEvent ( "passowrd", true ) 
 addEventHandler ( "passowrd",root, 
function (zz)  
setServerPassword ( tostring(zz) ) 
outputChatBox ( "Password changed successfully and become: "..tostring(getServerPassword()), source ) 
end 
) 

addEvent ( "passowrd", true )

 addEventHandler ( "passowrd",root,

خطأ مطبعي

triggerServerEvent("password", localPlayer, zz)

password

هذا اللي مرسول

هذا المستقبل

passowrd

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