Jump to content

طلب كود


Recommended Posts

Posted
function chatBox(plr,mezo) 
outputChatBox(plr.."has Slapped By "..getPlayerName (source).."Reason:"..mezo, 255, 0, 0, false) 
end 
addEvent("ChatBox_playerHaveSlap", true) 
addEventHandler("ChatBox_playerHaveSlap", root, chatBox) 

#Client Side

addEventHandler("onClientGUIClick",root, 
function ( ) 
if ( source == SlapButton ) then 
if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then 
local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList ),1) 
local myPlayer = getPlayerFromName ( plr ) 
local mezo = guiGetText ( Edit ) -- اسم الايديت 
triggerServerEvent("ChatBox_playerHaveSlap", localPlayer,  plr, mezo) 
setElementHealth(myPlayer, 0, true) 
guiSetVisible(SlapWnd,false) 
guiSetInputEnabled(false) 
showCursor(false) 
end 
end 
end 
) 

Skype :- mezo.prince1

FaceBook :- https://www.facebook.com/medolua

YouTube :- http://www.youtube.com/c/MeZoOPriNse 

76561198820126897.png

Posted
addEventHandler("onClientGUIClick",root, 
function ( ) 
if ( source == SlapButton ) then 
if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then 
local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList ),1) 
local myPlayer = getPlayerFromName ( plr ) 
local mezo = guiGetText ( Edit ) 
triggerServerEvent("ChatBox_playerHaveSlap", resourceRoot, plr, mezo) 
setElementHealth(myPlayer, 0, true) 
guiSetVisible(SlapWnd,false) 
guiSetInputEnabled(false) 
showCursor(false) 
end 
end 
end 
) 

العيب من ال

Server Side

على حسب ما بيقول الدي بق

#Skype :mohamed.abdelmaksoud66

#WhatsApp : 01111231094

#Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ

#[M.S] Server : Role Play Soon | حياة واقعية قريبا.

#[M.S] Programmed By : mIDO

#[M.N] Server : Hajwalh Soon | هجوله قريبا.

#[M.N] Programmed By : mIDO

يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة xD

n-560x95_006EB8_000000_000000_AD0000.png

Posted
addEventHandler("onClientGUIClick",root, 
function ( ) 
if ( source == SlapButton ) then 
if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then 
local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList ),1) 
local myPlayer = getPlayerFromName ( plr ) 
local mezo = guiGetText ( Edit ) 
triggerServerEvent("ChatBox_playerHaveSlap", resourceRoot, plr, mezo) 
setElementHealth(myPlayer, 0, true) 
guiSetVisible(SlapWnd,false) 
guiSetInputEnabled(false) 
showCursor(false) 
end 
end 
end 
) 

العيب من ال

Server Side

على حسب ما بيقول الدي بق

عدلت الكود فوق

ووريني وش يقول الدي بق

Skype :- mezo.prince1

FaceBook :- https://www.facebook.com/medolua

YouTube :- http://www.youtube.com/c/MeZoOPriNse 

76561198820126897.png

Posted

شوف

لما يكون الكود كدا :

addEventHandler("onClientGUIClick",root, 
function ( ) 
if ( source == SlapButton ) then 
if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then 
local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList ),1) 
local myPlayer = getPlayerFromName ( plr ) 
local mezo = guiGetText ( Edit ) -- اسم الايديت 
triggerServerEvent("ChatBox_playerHaveSlap", resourceRoot,  plr, mezo) 
setElementHealth(myPlayer, 0, true) 
guiSetVisible(SlapWnd,false) 
guiSetInputEnabled(false) 
showCursor(false) 
end 
end 
end 
) 

بيقول

ERROR : Police\Server.lua:33: attempt to concatenate a boolean value

#Skype :mohamed.abdelmaksoud66

#WhatsApp : 01111231094

#Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ

#[M.S] Server : Role Play Soon | حياة واقعية قريبا.

#[M.S] Programmed By : mIDO

#[M.N] Server : Hajwalh Soon | هجوله قريبا.

#[M.N] Programmed By : mIDO

يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة xD

n-560x95_006EB8_000000_000000_AD0000.png

Posted

# Server :

addEvent("slap",true) 
addEventHandler("slap",root, 
function (plr,reasons) 
outputChatBox(plr.." Has Slapped By "..getPlayerName (source).." Reason : "..reasons,source, 255, 0, 0, false) 
end 

# Client :

addEventHandler("onClientGUIClick",root, 
function ( ) 
if ( source == SlapButton ) then 
if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then 
local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList ),1) 
local player = getPlayerFromName ( plr ) 
local reasons = guiGetText ( Edit ) -- اسم الايديت 
triggerServerEvent("slap", root, plr, reasons) 
setElementHealth(player, 0) 
guiSetVisible(SlapWnd,false) 
guiSetInputEnabled(false) 
showCursor(false) 
end 
end 
end 
) 

 

 

Posted
# Server :
addEvent("slap",true) 
addEventHandler("slap",root, 
function (plr,reasons) 
outputChatBox(plr.." Has Slapped By "..getPlayerName (source).." Reason : "..reasons,source, 255, 0, 0, false) 
end 

# Client :

addEventHandler("onClientGUIClick",root, 
function ( ) 
if ( source == SlapButton ) then 
if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then 
local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList ),1) 
local player = getPlayerFromName ( plr ) 
local reasons = guiGetText ( Edit ) -- اسم الايديت 
triggerServerEvent("slap", root, plr, reasons) 
setElementHealth(player, 0) 
guiSetVisible(SlapWnd,false) 
guiSetInputEnabled(false) 
showCursor(false) 
end 
end 
end 
) 

بالكلنت مسوي التريقر root ?????

بدلها بلوكل بلاير

Skype :- mezo.prince1

FaceBook :- https://www.facebook.com/medolua

YouTube :- http://www.youtube.com/c/MeZoOPriNse 

76561198820126897.png

Posted

# Server :

addEvent("slap",true) 
addEventHandler("slap",root, 
function (plr,reasons) 
outputChatBox(plr.." Has Slapped By "..getPlayerName (source).." Reason : "..reasons,source, 255, 0, 0, false) 
end 

# Client :

addEventHandler("onClientGUIClick",root, 
function ( ) 
if ( source == SlapButton ) then 
if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then 
local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList ),1) 
local player = getPlayerFromName ( plr ) 
local reasons = guiGetText ( Edit ) -- اسم الايديت 
triggerServerEvent("slap", localPlayer, plr, reasons) 
setElementHealth(player, 0) 
guiSetVisible(SlapWnd,false) 
guiSetInputEnabled(false) 
showCursor(false) 
end 
end 
end 
) 

^ جرب الحين ، غلط ب لوكال بلاير لأني نسخت الكود سريع سريع وما عدلته

 

 

Posted

#Server Side

')' expected (to close '(' ate line 33) near ''

الدي بق ^

#Skype :mohamed.abdelmaksoud66

#WhatsApp : 01111231094

#Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ

#[M.S] Server : Role Play Soon | حياة واقعية قريبا.

#[M.S] Programmed By : mIDO

#[M.N] Server : Hajwalh Soon | هجوله قريبا.

#[M.N] Programmed By : mIDO

يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة xD

n-560x95_006EB8_000000_000000_AD0000.png

Posted
شوف

لما يكون الكود كدا :

addEventHandler("onClientGUIClick",root, 
function ( ) 
if ( source == SlapButton ) then 
if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then 
local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList ),1) 
local myPlayer = getPlayerFromName ( plr ) 
local mezo = guiGetText ( Edit ) -- اسم الايديت 
triggerServerEvent("ChatBox_playerHaveSlap", resourceRoot,  plr, mezo) 
setElementHealth(myPlayer, 0, true) 
guiSetVisible(SlapWnd,false) 
guiSetInputEnabled(false) 
showCursor(false) 
end 
end 
end 
) 

بيقول

ERROR : Police\Server.lua:33: attempt to concatenate a boolean value

العيب من ملف السيرفر السطر رقم 33

اطرح السطر رقم 33 بملف السيرفر

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

Posted
#Server Side

')' expected (to close '(' ate line 33) near ''

الدي بق ^

شوف

لما يكون الكود كدا :

addEventHandler("onClientGUIClick",root, 
function ( ) 
if ( source == SlapButton ) then 
if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then 
local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList ),1) 
local myPlayer = getPlayerFromName ( plr ) 
local mezo = guiGetText ( Edit ) -- اسم الايديت 
triggerServerEvent("ChatBox_playerHaveSlap", resourceRoot,  plr, mezo) 
setElementHealth(myPlayer, 0, true) 
guiSetVisible(SlapWnd,false) 
guiSetInputEnabled(false) 
showCursor(false) 
end 
end 
end 
) 

بيقول

ERROR : Police\Server.lua:33: attempt to concatenate a boolean value

اطرح ملف السيرفر كامل

Skype :- mezo.prince1

FaceBook :- https://www.facebook.com/medolua

YouTube :- http://www.youtube.com/c/MeZoOPriNse 

76561198820126897.png

Posted

# Server :

addEvent("slap",true) 
addEventHandler("slap",root, 
function (plr,reasons) 
outputChatBox(plr.." Has Slapped By "..getPlayerName (source).." Reason : "..reasons,source, 255, 0, 0, false) 
end 
) 

 

 

Posted
اشتغل شباب

الخطا من عند بﻻك نيكست

حاطط root بدل localPlayer

بالتوفيق

صلحت كودي وعطيته هو وجربه واشتغل ، وانت باقي تقول الخطأ عندي

:/

 

 

Posted

شباب الخطأ كان فى القوس الكان فى اخر الكود حق السيرفر

addEvent("slap",true) 
addEventHandler("slap",root, 
function (plr,reasons) 
outputChatBox(plr.." Has Slapped By "..getPlayerName (source).." Reason : "..reasons,source, 255, 0, 0, false) 
end 
) 

سطر 6

ما كان موجود

#Skype :mohamed.abdelmaksoud66

#WhatsApp : 01111231094

#Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ

#[M.S] Server : Role Play Soon | حياة واقعية قريبا.

#[M.S] Programmed By : mIDO

#[M.N] Server : Hajwalh Soon | هجوله قريبا.

#[M.N] Programmed By : mIDO

يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة xD

n-560x95_006EB8_000000_000000_AD0000.png

Posted
شباب الخطأ كان فى القوس الكان فى اخر الكود حق السيرفر
addEvent("slap",true) 
addEventHandler("slap",root, 
function (plr,reasons) 
outputChatBox(plr.." Has Slapped By "..getPlayerName (source).." Reason : "..reasons,source, 255, 0, 0, false) 
end 
) 

سطر 6

ما كان موجود

يب عدلته لك بعدها

 

 

Posted
#Server Side 

')' expected (to close '(' ate line 33) near ''

الخطأ كان بالاقواس ي ميزو

ماكان خطأ

Root or localPlayer

خخخ

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

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