Jump to content

x[مشكلة]x الصورة لاتظهر


yasin0

Recommended Posts

السلام عليكم شباب ليش الصورة ماتظهر للاعب لما يموت ؟

x,y = guiGetScreenSize()
x = x - 300
y = y - 250
function a ( _,aPlayer,_,_,_)
dxDrawImage ( x/2,y/2,200,100,'1.png')
end
function gRender ( )
addEventHandler('onClientRender',root,a)
end
addEventHandler('onClientPlayerWasted',root,a)

في حال تصحيح الكود ارجو من الشخص ان يعطيني الاخطاء

Link to comment
x,y = guiGetScreenSize()
x = x - 300
y = y - 250
function a ()
   dxDrawImage ( x/2,y/2,200,100,'1.png')
end
function gRender ()
   addEventHandler('onClientRender',root,a)
end
addEventHandler('onClientPlayerWasted',root,gRender)

مادري كيف اوضح الاخطاء انتظر حد ثانيء يشرحلك

Link to comment
10 minutes ago, #BrosS said:

x,y = guiGetScreenSize()
x = x - 300
y = y - 250
function a ()
   dxDrawImage ( x/2,y/2,200,100,'1.png')
end
function gRender ()
   addEventHandler('onClientRender',root,a)
end
addEventHandler('onClientPlayerWasted',root,gRender)

مادري كيف اوضح الاخطاء انتظر حد ثانيء يشرحلك

شكرا فهمت اخطائي سؤال اخر ليش الصورة ماتروح بعد 5 ثواني ؟

x,y = guiGetScreenSize()
x = x - 300
y = y - 250
function a ()
   dxDrawImage ( x/2,y/2,200,100,'1.png')
end
function gRender ()
   addEventHandler('onClientRender',root,a)
end
addEventHandler('onClientPlayerWasted',root,gRender)
setTimer(function()
removeEventHandler(5000,1,'onClientRender',localPlayer,gRender))
end

 

Edited by yasin0
Link to comment
Just now, yasin0 said:

شكرا فهمت اخطائي سؤال اخر ليش الصورة ماتروح بعد 5 ثواني ؟


x,y = guiGetScreenSize()
x = x - 300
y = y - 250
function a ()
   dxDrawImage ( x/2,y/2,200,100,'1.png')
end
function gRender ()
   addEventHandler('onClientRender',root,a)
end
addEventHandler('onClientPlayerWasted',root,gRender)
setTimer(function()
removeEventHandler(5000,1,'onClientRender',localPlayer,gRender))
end

 

setTimer ( removeEventHandler, 5000, 1, 'onClientRender', localPlayer, a )

line: 12

Edited by killerProject
a
Link to comment
16 minutes ago, killerProject said:

setTimer ( removeEventHandler, 5000, 1, 'onClientRender', localPlayer, a )

line: 12

 

16 minutes ago, killerProject said:

setTimer ( removeEventHandler, 5000, 1, 'onClientRender', localPlayer, a )

line: 12

يقولي function nill 

x,y = guiGetScreenSize()
x = x - 300
y = y - 250
function a ()
   dxDrawImage ( x/2,y/2,200,100,'1.png')
end
function gRender ()
   addEventHandler('onClientRender',root,a)
end
addEventHandler('onClientPlayerWasted',root,gRender)
setTimer ( removeEventHandler, 5000, 1, 'onClientRender', localPlayer, gRender )

 

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