-
Posts
3,389 -
Joined
-
Last visited
-
Days Won
55
Everything posted by Master_MTA
-
لا لا عرفت الخطا fetchRemote لا تقبل المواقع اللي تبدا بي https: لكن تقبل http:
-
yup you are right thank you solved
-
مشكورين خلاص مدري وش الخطا لكن يوم غيرت صيغة الرابط يعني الرابط اللي ينتهي ب .png ما تشتغل معه لما غيرته لذا يشتغل
-
مستحيل مش لوحدي معاي واحد نته 16 ميجا ومشتغلش برضو عنده
-
جربت وشفت رمز الخطا يقولي انسبورتد بروتوكول كيف ان سبورتد بروتوكول تنصحوني استخدم createBrowser لاني شفت برضو مشاكل بخصوص fetchRemote بعض الاوقات ما تشتغل
-
السلام عليكم ورحمة الله وبركاته يعيال انا الحين صراحه مواجهتني مشكله مدري شلحل معها راسي انفجر وانا افكر فياليت اللي يعرف يفيدني function savedplayers( img, errorr, plr ) local inf=getPlayerInfo(plr) if errorr == 0 then triggerClientEvent( plr, "clsavedplrs", plr, img,tostring(isPlayerAdminSkin(plr)) ) else outputChatBox(errorr)----------------------------------------------------------------->result is 1 triggerClientEvent( plr, "clsavedplrs", plr, false,tostring(isPlayerAdminSkin(plr))) end end for k,v in ipairs(getElementsByType('player'))do fetchRemote ( 'https://d.top4top.net/p_6026au3j1.png', savedplayers, "", false, v) end outputChatBox(errorr)----------------------------------------------------------------->result is 1 triggerClientEvent( plr, "clsavedplrs", plr, false,tostring(isPlayerAdminSkin(plr))) هذا الجزئ يتنفذ ويطلع بالشات 1 لكن انا ابي الجزء اللي بعد if هو اللي يتنفذ مب الجزء اللي بعد else اتمنى تكون وصلت الفكره واللي بيقولي غير الساينتاكس عشان اصدار 1.5.4 بقوله غيرته نفس النتيجه مافي فرق
-
hmmm my idea was to reset ctrl key and add the shot function to functions which it's bind to ctrl did you understand me?
-
getCommandsBoundToKey getFunctionsBoundToKey unbindKey bindKey the functions which will you need to create your own script
-
send pm to me
-
self? undefined
-
it's already can shout speed rockets?
-
debug?
-
what do you want to do?
-
any time dude we are all try to help each others
-
yup any thing else?
-
something like that for k=1,#table.(serial or acc or any thing you want) do if getPlayerSerial(player that you want get he is skins)==table.serial[k] then setElementModel(player,table.skins[k])---or something like that end end
-
no thing it's still output 1 https://wiki.multitheftauto.com/wiki/CURL_Errors i check it but i don't understand what does that mean CURLE_UNSUPPORTED_PROTOCOL why it's unsupported
-
so you can do it like i was say or you can use loop? and tables
-
1.5.4 and i change the syntax like that it's still output 1 bool fetchRemote ( string URL[, table options ], callback callbackFunction[, table callbackArguments ] )
-
create table for players skins executeSQLQuery("CREATE TABLE IF NOT EXISTS playersskins (plracc TEXT, skin TEXT, addons TEXT)") ---or dbExec(db connection,'CREATE TABLE IF NOT EXISTS players (plracc TEXT, skin TEXT, addons TEXT)') -------------- ---then when you want to get it do that dbPoll(db connection,'SELECT * FROM playersskins WHERE plracc=?',the player acc name) -----and dont forget to use (split) ---and alos if you want to insert the addons do something like that dbExec(db connection,'INSERT INTO playersskins VALUES(?,?,?)',plr acc string,skin id number,tostring(addition..','..addition1..','....etc))
-
it's a small code from game mode so it doesn''t matter the code stop working at this code function savedplayers( img, errorr, plr ) local inf=getPlayerInfo(plr) if errorr == 0 then -------------------------[[it's get error at her andd didn't complete]]-- triggerClientEvent( plr, "clsavedplrs", plr, img,tostring(isPlayerAdminSkin(plr)) )---------------------i need to trigger client side from this trigger else outputChatBox(errorr)----------------and output 1 at chat box triggerClientEvent( plr, "clsavedplrs", plr, false,tostring(isPlayerAdminSkin(plr)))-------then it work perfectly at here end end
-
i am already add the resource to Admin group in Acl i am also add the right function.fetchRemote to ACL right for Admin group this is the fall code function getPlayerImage(plr) local ser=getPlayerSerial(plr) local sl=dbPoll(dbQuery(db,'SELECT * FROM accounts WHERE serial=?',ser),-1) if #sl~=0 then return tostring(sl[1].imageurl) end return false end addEvent('checkplrs',true) addEventHandler('checkplrs',root,function() if #getElementsByType('player')==0 then return end if isSerialRegisterd(getPlayerSerial(source))then if isSerialSaved(getPlayerSerial(source)) then local img=getPlayerImage(source) local inf=getPlayerInfo(source) local acc=getAccount(inf[1].accname,inf[1].pass) if acc then logIn(source,getAccount(inf[1].accname),inf[1].pass) if isAccountRegisterd(user)then dbExec(db,'UPDATE accounts SET lastvisit=? WHERE accname=?',last,user) dbExec(db,'UPDATE accounts SET save=? WHERE accname=?',tostring(mm),user) else dbExec(db,'INSERT INTO accounts VALUES(?,?,?,?,?,?)',user,pass,getPlayerSerial(source),FormatDate('d/m/Y||h:i:s'),tostring(mm),'https://e.top4top.net/p_6029qsov1.png') end fetchRemote (img, savedplayers, "", false, source ) end else triggerClientEvent( source, "clnotsavedplrs", source ) end else triggerClientEvent( source, "clnotsavedplrs", source ) end end ) client side addEvent('clsavedplrs',true) addEventHandler('clsavedplrs',root,function(imgme,isad) if imgme~=false then img=dxCreateTexture( imgme ) else img='ss.png' end addEventHandler("onClientRender", root,intro) showChat(false) showCursor(true) setTimer(function() removeEventHandler("onClientRender", root,intro) fadeCamera(true) showCursor(false) isadmin=isad setCameraMatrix(-343.72479248047,1590.9632568359,92.085800170898,-343.18273925781,1590.126953125,92.003082275391,0,70) ped=createPed(287,-341.83081054688,1588.0413818359,91.196739196777) setPedAnimation(ped, "DANCING", "dnce_M_a",-1,true,false,false) addEventHandler('onClientKey',root,skinchose) end,1000*20,1) end)