Jump to content

طلب تصحيح كود


Recommended Posts

local groupName = '[ARMY]' 
  
addEventHandler("onVehicleStartEnter", root, 
function(player, seat) 
if getElementData(player, "Group") =~ groupName then  
cancelEvent() 
outputChatBox("This vehicle is only for "..groupName.." group!", player, 255, 0, 0) 
end 
end 
) 
  

صارت كل سيارات السيرفر تخص القروب ارمي

Link to comment
local groupName = '[ARMY]' 
  
addEventHandler("onVehicleStartEnter", root, 
function(player, seat) 
if getElementData(player, "Group") ~= groupName then 
cancelEvent() 
outputChatBox("This vehicle is only for "..groupName.." group!", player, 255, 0, 0) 
end 
end 
) 

ع الأقل وضح له شو الخطأ .. عشان يعرف ويستفيد ..

لا تعطني سمكة ولكن علمني كيف اصطاد

Link to comment
local groupName = '[ARMY]' 
  
addEventHandler("onVehicleStartEnter", root, 
function(player, seat) 
if getElementData(player, "Group") ~= groupName then 
cancelEvent() 
outputChatBox("This vehicle is only for "..groupName.." group!", player, 255, 0, 0) 
end 
end 
) 

ع الأقل وضح له شو الخطأ .. عشان يعرف ويستفيد ..

لا تعطني سمكة ولكن علمني كيف اصطاد

انا اؤيد الدجاج يامربع

وش صار على المربع بشر

ض1

Link to comment
local groupName = '[ARMY]' 
  
addEventHandler("onVehicleStartEnter", root, 
function(player, seat) 
if getElementData(player, "Group") ~= groupName then 
cancelEvent() 
outputChatBox("This vehicle is only for "..groupName.." group!", player, 255, 0, 0) 
end 
end 
) 

وش غيرت ب كوده ؟؟؟

Link to comment
local groupName = '[ARMY]' 
  
addEventHandler("onVehicleStartEnter", root, 
function(player, seat) 
if getElementData(player, "Group") ~= groupName then 
cancelEvent() 
outputChatBox("This vehicle is only for "..groupName.." group!", player, 255, 0, 0) 
end 
end 
) 

وش غيرت ب كوده ؟؟؟

ولا شي .

Link to comment
كان عندهـ غلط بـ =~

يب

لو قلتوا له أحسن من انكم تعطونه الكود جاهز

انا اؤيد الدجاج يامربع

وش صار على المربع بشر

ض1

ههههههههههههههه

الله كريم

Link to comment
local groupName = '[ARMY]' 
  
addEventHandler("onVehicleStartEnter", root, 
function(player, seat) 
if getElementData(player, "Group") == groupName then 
cancelEvent() 
outputChatBox("This vehicle is only for "..groupName.." group!", player, 255, 0, 0) 
end 
end 
) 

التعديل في السطر هذا

if getElementData(player, "Group") == groupName then -- كان =~ صار كذا == وبس 

Link to comment
local groupName = '[ARMY]' 
  
addEventHandler("onVehicleStartEnter", root, 
function(player, seat) 
if getElementData(player, "Group") == groupName then 
cancelEvent() 
outputChatBox("This vehicle is only for "..groupName.." group!", player, 255, 0, 0) 
end 
end 
) 

التعديل في السطر هذا

if getElementData(player, "Group") == groupName then -- كان =~ صار كذا == وبس 

كذأ صار لو اللاعب موجود بـ القروب يتكنسل الكود ذذ

Link to comment
قال تصحيح كود مقال علموني وش الخطأ

وشو الفايدة يوم كل واحد آخذ كود وما اشتغل وقال صلحولي اياه ...

كيف بيتعلم بعدين وش الخطأ ..

يعني كل مرة تواجهه نفس المشكلة بيحط الكود وبيقول صلحولي اياه ..

Link to comment
قال تصحيح كود مقال علموني وش الخطأ

وشو الفايدة يوم كل واحد آخذ كود وما اشتغل وقال صلحولي اياه ...

كيف بيتعلم بعدين وش الخطأ ..

يعني كل مرة تواجهه نفس المشكلة بيحط الكود وبيقول صلحولي اياه ..

+1

يعني يشوفهم يصلحون الكود يحسبه سحر :mrgreen:

لو تقله الخطأ ويحاول يصلحه احسن

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