Quando você está em uma página qualquer de uma função GUI, você pode ir até o fim da página e procurar pela função que você deseja na lista do "See Also". Ela está organizada pelos tipos de elementos GUI, no seu caso era só olhar no Tab Panels.
function llenarAlCambiar(oldModel, newModel)
if ( getElementType(source) == "player" ) then
setElementHealth( source, 100 )
end
end
addEventHandler("onElementModelChange", getRootElement(), llenarAlCambiar)
Esto debería funcionar. Recuerda que es lado server.
I checked my code and that's true - all data saved except for functions
i'll try to rewrite functions using elements only and connect them with metatables with elementData
Si reinicias un script con esa función, se le reiniciará a todos. Si lo vas a hacer para jobs o algo así, deberías crear todo de 0 una vez muera o lo que sea. Supongo que tendrás alguna función que inicie el "trabajo", pues, repítela cuando muera, por ejemplo.
Ever seen a meta table as they are created? A meta table is used to change the behaviour of a regular table. The main issue is with the fact that it uses functions to achieve this behaviour.
And functions...
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.
sendTo: The event will be sent to all players that are children of the specified element. By default this is the root element, and hence the event is sent to all players. If you specify a single player it will just be sent to that player. This argument can also be a table of player elements.
arguments...: A list of arguments to trigger with the event. You can pass any lua data type (except functions). You can also pass elements.
https://wiki.multitheftauto.com/wiki/TriggerClientEvent
...can't be send over according to wiki.
But even if this is a meta table, you will have the same problem with a regular table.
This has probably happend: all the functions that are inside of the table are deleted.
The most fast methods are very dirty. I will only explain those ones when I think you have learned enough from the clean ones.
But make one first.
Just two loops, one nested in to the other. And try to figure out what the most logic human method would be to achieve your goal.
If it fails, don't worry, just post what you tried. But it has to be yours, only then I will help you.
السلام عليكم ورحمة الله وبركاته
اعتذر للجميع عما بدر مني في الأيام او الشهور السابقة
وأقدم اعتذاري الشديد لـ الأخ كيلر و ديستروير والباقيين
مبدأنا نغلط ونرجع عن غلطنا كلنا ناقصين والكمال لله عز وجل
اعتذر لكم بما بدر مني من كلام , ساعة غضب وكن عفوا فالله عفو يحب العفو
واستودعكم الله الذي لا تضيع ودائعه , اراكم على خير
السلام عليكم ورحمة الله وبركاته
حاب اطلق برنامج بسيط وهو تحويل الانجليزية للعربية
ثعني مثلاً
mr7ba > مرحبا
شوفوا الصور او حملوه:
بصراحة ما ادري ايش فايدته بالزبط بس سويته تسلية لاغير ..
والي يقول ملغم ومدري ايش، هذا من الآخر
، شوف الفكرة بالصورة وعطني آرائك
رابط التحميل (مع التنصيب):
http://www.mediafire.com/download/2vxjx ... icV1.0.exe
بدون تنصيب:
http://www.mediafire.com/download/3lwd2 ... verter.rar
بسم الله الرحمن الرحيم
السلام عليكم ورحمة الله وبركاته
... والخ end عند كتابة الاكواد يمكنك ترتبيها لتكون اكثر وضوحاً للقارئ وغالباً لك لكي تعرف الاخطاء التركيبية مثل: عدم تكملة قوس, نسيان
:مثال الآتي end ف عند كتابة اي شيء يمكنه ان يغلق ب
function myFunction(myArgument)
if myArgument then
-- الخ ..
end
end
Enter انتقل للسطر التالي بالضغط على زر
او اترك مساحة من اربع حروف Notepad++ اذا كنت تستعمل Tab ثم اضغط على زر
:مما يجعل الكود قابل للقرائة وليس كالتالي
function myFunction(myArgument)
if myArgument then
-- الخ ..
end
end
والسلام عليكم ورحمة الله وبركاته