-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
فتحنا وخلصنا ولاحد رد علينا لازم نظهر الحقيقة للكل ..
-
اذا كانت داتا وحدة اللي هي 'Occupation' .. مايحتاج لانة هو يعين نفس الداتا بتغيير القيمة مثلاً القيمة الحاليه : false تسوي أمر يحطها farmer بيتغير الفولس لـ فارمر .. أتمنى وضحت اللي تبية .
-
^ No sense 'thePlayer' is a variable it will not return for the player if the variable wasn't the player.
-
Maybe because it's a guest account?
-
لا عادي ينفع لل MTA لكن الافضل ديبيان 7 ..
-
صراحة استضافة مادري كيف تصميم كويس وكل شيء وخدمات = زفففففت عالاخر طلبت سيرفر MTA بجرب الخادم وكذا دفعت وكل شيء .. انتظر التفعيل يوم يومين اسبوع اسبوعين للحين ماوصلني شيء لكن صدقوني بهالطريقة ماراح تحصلون عملاء .
-
لاني محدد الزر في الحدث لانة لو تضغط اي المنت gui بدون ماتسوي الفولس بيسوي الوظيفة
-
اذا اكثر من زر او زرين اشوف اللي عطيتك انسب طريقة لكن بـ كودك يصير كذا : addEventHandler('onClientGUIClick', GUIEditor.button[3], function ( ) setElementData ( localPlayer,'Occupation','farmer' ) end,false )
-
GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(489, 146, 324, 257, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(32, 48, 98, 69, "", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(203, 48, 98, 69, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(32, 161, 98, 69, "", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(203, 161, 98, 69, "", false, GUIEditor.window[1]) end ) DataValues = { [1] = { 'taxi' }, [2] = { 'iron' }, [3] = { 'farmer' }, [4] = { 'police' } } addEventHandler ( 'onClientGUIClick',root, function ( ) for Key = 1,#GUIEditor.button do if source == GUIEditor.button[ Key ] then setElementData ( localPlayer,'Occupation',DataValues [ Key ] [ 1 ] ) end end end )
-
طبعاً ماراح يحطها لانك تحط داتا بدون معرف او شيء يعرف القيمة مثل : police taxi اذا تبيه يظهرضيف لهم سترنق .. [ علامات التنصيص ] للتوضيح فقط .. وحاول تختصر اكوادك ي بطل .
-
Hey guys! I was importing some of mySQL tables i got this error : Error at the line 127131: ) ENGINE=MyISAM AUTO_INCREMENT=1155 DEFAULT CHARSET=latin1; Query: MySQL: Invalid default value for 'field_mym_c' My Code : DROP TABLE IF EXISTS user; CREATE TABLE `user` ( `userid` int(10) unsigned NOT NULL AUTO_INCREMENT, `gxcss_mzag` mediumtext NOT NULL, `gxcss_users` mediumtext NOT NULL, `gxcss_user` mediumtext NOT NULL, `gxcss_news` mediumtext NOT NULL, `gxcss_sms` mediumtext NOT NULL, `gxcss_mms` mediumtext NOT NULL, `gxcss_down` mediumtext NOT NULL, `gxcss_up` mediumtext NOT NULL, `gxcss_underline` mediumtext NOT NULL, `gxcss_italic` mediumtext NOT NULL, `gxcss_blod` mediumtext NOT NULL, `gxcss_size` mediumtext NOT NULL, `gxcss_font` mediumtext NOT NULL, `gxcss_color` mediumtext NOT NULL, `usergroupid` smallint(5) unsigned NOT NULL DEFAULT '0', `membergroupids` char(250) NOT NULL DEFAULT '', `displaygroupid` smallint(5) unsigned NOT NULL DEFAULT '0', `username` varchar(100) NOT NULL DEFAULT '', `password` char(32) NOT NULL DEFAULT '', `passworddate` date NOT NULL DEFAULT '0000-00-00', `email` char(100) NOT NULL DEFAULT '', `styleid` smallint(5) unsigned NOT NULL DEFAULT '0', `parentemail` char(50) NOT NULL DEFAULT '', `homepage` char(100) NOT NULL DEFAULT '', `icq` char(20) NOT NULL DEFAULT '', `aim` char(20) NOT NULL DEFAULT '', `yahoo` char(32) NOT NULL DEFAULT '', `msn` char(100) NOT NULL DEFAULT '', `skype` char(32) NOT NULL DEFAULT '', `showvbcode` smallint(5) unsigned NOT NULL DEFAULT '0', `showbirthday` smallint(5) unsigned NOT NULL DEFAULT '2', `usertitle` char(250) NOT NULL DEFAULT '', `customtitle` smallint(6) NOT NULL DEFAULT '0', `joindate` int(10) unsigned NOT NULL DEFAULT '0', `daysprune` smallint(6) NOT NULL DEFAULT '0', `lastvisit` int(10) unsigned NOT NULL DEFAULT '0', `lastactivity` int(10) unsigned NOT NULL DEFAULT '0', `lastpost` int(10) unsigned NOT NULL DEFAULT '0', `lastpostid` int(10) unsigned NOT NULL DEFAULT '0', `posts` int(10) unsigned NOT NULL DEFAULT '0', `reputation` int(11) NOT NULL DEFAULT '10', `reputationlevelid` int(10) unsigned NOT NULL DEFAULT '1', `timezoneoffset` char(4) NOT NULL DEFAULT '', `pmpopup` smallint(6) NOT NULL DEFAULT '0', `avatarid` smallint(6) NOT NULL DEFAULT '0', `avatarrevision` int(10) unsigned NOT NULL DEFAULT '0', `profilepicrevision` int(10) unsigned NOT NULL DEFAULT '0', `sigpicrevision` int(10) unsigned NOT NULL DEFAULT '0', `options` int(10) unsigned NOT NULL DEFAULT '33554447', `birthday` char(10) NOT NULL DEFAULT '', `birthday_search` date NOT NULL DEFAULT '0000-00-00', `maxposts` smallint(6) NOT NULL DEFAULT '-1', `startofweek` smallint(6) NOT NULL DEFAULT '1', `ipaddress` char(15) NOT NULL DEFAULT '', `referrerid` int(10) unsigned NOT NULL DEFAULT '0', `languageid` smallint(5) unsigned NOT NULL DEFAULT '0', `emailstamp` int(10) unsigned NOT NULL DEFAULT '0', `threadedmode` smallint(5) unsigned NOT NULL DEFAULT '0', `autosubscribe` smallint(6) NOT NULL DEFAULT '-1', `pmtotal` smallint(5) unsigned NOT NULL DEFAULT '0', `pmunread` smallint(5) unsigned NOT NULL DEFAULT '0', `salt` char(30) NOT NULL DEFAULT '', `ipoints` int(10) unsigned NOT NULL DEFAULT '0', `infractions` int(10) unsigned NOT NULL DEFAULT '0', `warnings` int(10) unsigned NOT NULL DEFAULT '0', `infractiongroupids` varchar(255) NOT NULL DEFAULT '', `infractiongroupid` smallint(5) unsigned NOT NULL DEFAULT '0', `adminoptions` int(10) unsigned NOT NULL DEFAULT '0', `profilevisits` int(10) unsigned NOT NULL DEFAULT '0', `friendcount` int(10) unsigned NOT NULL DEFAULT '0', `friendreqcount` int(10) unsigned NOT NULL DEFAULT '0', `vmunreadcount` int(10) unsigned NOT NULL DEFAULT '0', `vmmoderatedcount` int(10) unsigned NOT NULL DEFAULT '0', `socgroupinvitecount` int(10) unsigned NOT NULL DEFAULT '0', `socgroupreqcount` int(10) unsigned NOT NULL DEFAULT '0', `pcunreadcount` int(10) unsigned NOT NULL DEFAULT '0', `pcmoderatedcount` int(10) unsigned NOT NULL DEFAULT '0', `gmmoderatedcount` int(10) unsigned NOT NULL DEFAULT '0', `ncode_imageresizer_mode` enum('none','enlarge','samewindow','newwindow') DEFAULT NULL, `ncode_imageresizer_maxwidth` smallint(5) unsigned DEFAULT NULL, `ncode_imageresizer_maxheight` smallint(5) unsigned DEFAULT NULL, `showcybstats` tinyint(1) NOT NULL DEFAULT '1', `dbtech_thanks_likes` int(10) unsigned NOT NULL DEFAULT '0', `dbtech_thanks_liked` int(10) unsigned NOT NULL DEFAULT '0', `dbtech_thanks_thanks` int(10) unsigned NOT NULL DEFAULT '0', `dbtech_thanks_thanked` int(10) unsigned NOT NULL DEFAULT '0', `dbtech_thanks_dislikes` int(10) unsigned NOT NULL DEFAULT '0', `dbtech_thanks_disliked` int(10) unsigned NOT NULL DEFAULT '0', `likes_by_ali` int(10) unsigned NOT NULL DEFAULT '0', `likes_receive_by_ali` int(10) unsigned NOT NULL DEFAULT '0', `likes_send_by_ali` int(10) unsigned NOT NULL DEFAULT '0', `field_mycl_1` varchar(255) NOT NULL, `field_myhl` varchar(255) NOT NULL DEFAULT 'center', `field_myfol` varchar(255) NOT NULL DEFAULT 'center', `field_mymsh_1` varchar(255) NOT NULL, `field_mymsh_2` varchar(255) NOT NULL, `field_mymsh_3` varchar(255) NOT NULL, `field_mymsh_1_n` varchar(255) NOT NULL, `field_mymsh_2_n` varchar(255) NOT NULL, `field_mymsh_3_n` varchar(255) NOT NULL, `field_mym_test` varchar(255) NOT NULL, `field_mym_test2` varchar(255) NOT NULL, `field_mym_test3` varchar(255) NOT NULL, `field_mypost` varchar(100) NOT NULL DEFAULT 'helm_legacy', `field_mys` text NOT NULL, `field_mym` varchar(255) NOT NULL, `field_mynb` varchar(255) NOT NULL, `field_myne` varchar(255) NOT NULL, `field_mync` varchar(255) NOT NULL, `field_mynf` varchar(255) NOT NULL, `field_myns` varchar(255) NOT NULL, `field_mynst` varchar(255) NOT NULL, `field_mycl` text NOT NULL, `field_myfo` varchar(255) NOT NULL, `field_myh` varchar(255) NOT NULL, `field_myso` varchar(255) NOT NULL, `field_myy` varchar(255) NOT NULL, `field_mych` varchar(255) NOT NULL DEFAULT '0', `field_mym_d` varchar(255) NOT NULL, `field_mym_c` varchar(255) NOT NULL DEFAULT 'އқ', `field_mym_j` varchar(255) NOT NULL, `field_mym_sk` varchar(255) NOT NULL, `field_myl` text NOT NULL, `sc_thumbs_notifcnt` int(4) unsigned NOT NULL DEFAULT '0', `sc_thumbs_notifact` tinyint(1) NOT NULL DEFAULT '1', `sc_thumbs_up_received` int(10) unsigned NOT NULL DEFAULT '0', `sc_thumbs_down_received` int(10) unsigned NOT NULL DEFAULT '0', `sc_thumbs_up_gave` int(10) unsigned NOT NULL DEFAULT '0', `sc_thumbs_down_gave` int(10) unsigned NOT NULL DEFAULT '0', `dbtech_thanks_points` int(10) NOT NULL DEFAULT '0', `dbtech_thanks_settings` int(10) unsigned NOT NULL DEFAULT '0', `dbtech_thanks_alertcount` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`userid`), KEY `usergroupid` (`usergroupid`), KEY `username` (`username`), KEY `birthday` (`birthday`,`showbirthday`), KEY `birthday_search` (`birthday_search`), KEY `referrerid` (`referrerid`) ) ENGINE=MyISAM AUTO_INCREMENT=1155 DEFAULT CHARSET=latin1; What does this mean? And how i can fix it.
-
سكربت قائمة الوزنيات | Handling Window من قبلي
iPrestege replied to </Mr.Tn6eL>'s topic in المساهمات
لايهمونك استفسر مثل ماتبي من حقك هالشيء وهالاطفال اللي فوق مثل السفههة عندك خليهم .. -
سكربت قائمة الوزنيات | Handling Window من قبلي
iPrestege replied to </Mr.Tn6eL>'s topic in المساهمات
اذا ماكان اللوكال بلاير في سيارة "الاعب" يرجع يعني مايسوي اللي بيجي يرجع للشات بوكس ويطلعه ويوقف عند الاند خلاص . -
اعتقد Tete سبق وقال لا تتجادلون معهم وبلغو فـ حسب ..~
-
Multi Theft Auto: San Andreas 1.3.5 released!
iPrestege replied to iPrestege's topic in Arabic / العربية
لكن ذا الأجنبي توه تذكر إنه ينزل الموضوع ،Multi Theft Auto Nightly Buildsبدري !! ترا التحديث 1.3.5 نازل من زمان على صفحة الـ مادري والله لكن حبيت أنبهة الاعضاء و المستخدمين فقط . -
Is there a page in the wiki for 'DxSetTextureEdge' Function?
-
السلام عليكم .. حبيت أخبركم انة الاصدار الجديد من MTA 1.3.5 نزل اليوم قبل شوي تقريباً ذذ .. مزيد من التفاصيل : Multi Theft Auto: San Andreas 1.3.5 released! اللي عنده سؤال عن اي اضافة يتفضل فيها .
-
You can edit this from the server acl rights as far as i know.
-
Yes that's because you removed the 'onClientMapStarting' Event as i think because the 'mapInfo' return nil . Try this : local SCREEN_WIDTH, SCREEN_HEIGHT = guiGetScreenSize() local name, author, lastTimePlayed, spawnPointCount, playedCount, modename local startTick local enabled = false local drawTime = 10000 local month = {"January","February","March","April","May","June","July","August","September","October","November","December"} function timestampToDate(stamp) local time = getRealTime(stamp) return string.format("%d %s %02d:%02d",time.monthday,month[time.month+1],time.hour,time.minute) end function handleMapInfo(mapInfo) ReturnInfo = mapInfo end addEvent("onClientMapStarting",true) addEventHandler("onClientMapStarting",getRootElement(),handleMapInfo) bindKey ( "m","down", function ( ) if not ReturnInfo then return end name = ReturnInfo.name or "Unknown" author = ReturnInfo.author or "Unknown" lastTimePlayed = timestampToDate(ReturnInfo.lastTimePlayed) or "Unknown" spawnPointCount = tostring(ReturnInfo.spawnPointCount) playedCount = tostring(ReturnInfo.playedCount or "Unknown") modename = ReturnInfo.modename ~= "Destruction derby" and ReturnInfo.modename or "DD / DM" startTick = getTickCount() if not enabled then addEventHandler("onClientRender",getRootElement(),handleOnRender) enabled = true else enabled = false removeEventHandler("onClientRender",getRootElement(),handleOnRender) end end ) function handleOnRender() local time = getTickCount() - startTick local alphaFactor if time < 1000 then alphaFactor = time / 1000 elseif time >= 1000 and time < drawTime + 1000 then alphaFactor = 1 elseif time >= drawTime + 1000 and time < drawTime + 2000 then alphaFactor = 1 - (time - (drawTime + 1000)) / 1000 elseif time >= drawTime + 2000 then enabled = false removeEventHandler("onClientRender",getRootElement(),handleOnRender) return end local maxLabelWidth = 81 local nameWidth = dxGetTextWidth(name,1,"default-bold") local authorWidth = dxGetTextWidth(author) + maxLabelWidth local lastTimePlayedWidth = dxGetTextWidth(lastTimePlayed) + maxLabelWidth local spawnPointCountWidth = dxGetTextWidth(spawnPointCount) + maxLabelWidth local playedCountWidth = dxGetTextWidth(playedCount) + maxLabelWidth local modenameWidth = dxGetTextWidth(modename) + maxLabelWidth local width = math.max(nameWidth,authorWidth,lastTimePlayedWidth,spawnPointCountWidth,playedCountWidth,modenameWidth) + 10 local height = 100 local x = SCREEN_WIDTH - width local y = SCREEN_HEIGHT / 1.3 - height / 1.3 dxDrawRectangle(x,y,width,20,tocolor(0,0,0,255*alphaFactor)) dxDrawRectangle(x,y + 20,width,height - 20,tocolor(0,0,0,200*alphaFactor)) dxDrawText(name,x,y,x+width,y+20,tocolor(97,255,19*alphaFactor),1,"default-bold","center","center") dxDrawText("Author:\nTipo:\nSpawnpoints:\ntimes played:\nlast time:",x+5,y+20,0,0,tocolor(97,255,19*alphaFactor),1,"default-bold") dxDrawText(string.format("%s\n%s\n%s\n%s\n%s",author,modename,spawnPointCount,playedCount,lastTimePlayed),x+5+maxLabelWidth,y+20,0,0,tocolor(255,255,255*alphaFactor)) end