-
Posts
1,412 -
Joined
-
Last visited
-
Days Won
2
Everything posted by WASSIm.
-
read arguments moveObject and see easing this exmple: local x,y,z = 2096.3, 1721, 12.7 local easing = "OutBounce" local time = 2000 local gate = createObject(980, x,y,z, 0, 0, 63) local marker = createMarker(x,y,z, "cylinder", 12, 0, 0, 0, 0) function moveGate(hitPlayer, matchingDimension) moveObject(gate, time, x+4.9, y+9.6, z, 0, 0, 0, easing) end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject(gate, time, x, y, z, 0, 0, 0, easing) end addEventHandler("onMarkerLeave", marker, moveBack)
-
OK thank you i think problem in my server
-
ya5i 9ad tjib fil 3arbi ?
-
replace this function dxDrawVoiceLabel ( player, index, color ) local sx, sy = guiGetScreenSize () local scale = sy / 800 local spacing = ( ICON_LINE * scale ) local px, py = sx - 200, sy * 0.7 + spacing * index local icon = ICON_DIMENSIONS * scale dxDrawImage ( px, py, icon, icon, ICON_PATH, 0, 0, 0, color, false ) px = px + spacing -- shadows dxDrawText ( getPlayerName ( player ), px + 1, py + 1, px, py, ICON_TEXT_SHADOW, scale ) -- text dxDrawText ( getPlayerName ( player ), px, py, px, py, color, scale ) end to this function dxDrawVoiceLabel ( player, index, color ) local sx, sy = guiGetScreenSize () local scale = sy / 800 local spacing = ( ICON_LINE * scale ) local px, py = sx - 200, sy * 0.7 + spacing * index local icon = ICON_DIMENSIONS * scale local name = getPlayerName ( player ) dxDrawImage ( px, py, icon, icon, ICON_PATH, 0, 0, 0, color, false ) px = px + spacing -- shadows name_ = name:gsub ( "#%x%x%x%x%x%x", "" ) dxDrawText ( name_, px + 1, py + 1, px, py, ICON_TEXT_SHADOW, scale, "default", "left", "top", false, false, false, false) -- text dxDrawText ( name, px, py, px, py, color, scale, "default", "left", "top", false, false, false, true) end
-
QUERY RESULT: table: 05F115A0
-
i edite it but not working addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()),function() executeSQLQuery("CREATE TABLE IF NOT EXISTS Save_Money_Account (Account TEXT,Money TEXT)") outputDebugString("Sql Save Money loaded .",3) end)
-
setElementVisibleTo is server side
-
function getphonenumber(thePlayer) if (getPlayerName(thePlayer) == "Ervin_Balog") then phonenumber3 = "222222222" elseif (getPlayerName(thePlayer) == "Alex_James") then phonenumber3 = "755167267" elseif (getPlayerName(thePlayer) == "John_Skot") then phonenumber3 = "752786786" end if phonenumber3 then outputChatBox("Your phone number is "..phonenumber3..".",thePlayer,255,150,30,true) end end addCommandHandler("getphone",getphonenumber)
-
nothing ERROR 10: Database query failed: no such table: Save_Money_Account 12: Database query failed: no such table: Save_Money_Account
-
and it's wrong lol . yeah he is give me it
-
hi guys i have problem why it not working ? addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()),function() executeSQLQuery("CREATE TABLE IF NOT EXISTS Save_Money_Account (Account,Money)") outputDebugString("Sql Save Money loaded .",3) end) addEventHandler("onPlayerQuit",getRootElement(),function() local Account = getAccountName(getPlayerAccount(source)) local Money = getPlayerMoney(source) local RowAccount = executeSQLQuery("SELECT * FROM Save_Money_Account WHERE Account = '"..tostring(Account).."'") if not ( #RowAccount == 0 ) then executeSQLQuery("UPDATE Save_Money_Account SET Money=? WHERE Account=?",tostring(Money),tostring(Account)) else executeSQLQuery("INSERT INTO Save_Money_Account(Account,Money) VALUES(?,?)",tostring(Account),tostring(Money)) end end) addEventHandler("onPlayerLogout",getRootElement(),function() local Account = getAccountName(getPlayerAccount(source)) local Money = getPlayerMoney(source) local RowAccount = executeSQLQuery("SELECT * FROM Save_Money_Account WHERE Account = '"..tostring(Account).."'") if not ( #RowAccount == 0 ) then executeSQLQuery("UPDATE Save_Money_Account SET Money=? WHERE Account=?",tostring(Money),tostring(Account)) else executeSQLQuery("INSERT INTO Save_Money_Account(Account,Money) VALUES(?,?)",tostring(Account),tostring(Money)) end setPlayerMoney(source,0) end) addEventHandler("onPlayerLogin",getRootElement(),function() local Account = getAccountName(getPlayerAccount(source)) local RowAccount = executeSQLQuery("SELECT * FROM Save_Money_Account WHERE Account = '"..tostring(Account).."'") if not ( #RowAccount == 0 ) then RowAccount = RowAccount[1]["Money"] setPlayerMoney(source,tonumber(RowAccount)) else return false end end)
-
i use guiSetText guiLabelSetHorizontalAlign
-
hi guys. i have question! can't use hex color to label ??
-
i get idea i make log event with xml and working. how make show all log in guiGridList ? make this ? local xmlfile = xmlLoadFile ( "eventlog.xml" ) if xmlfile then local NewNode = xmlNodeGetChildren( xmlfile) for i,node in pairs(NewNode) do local text = xmlNodeGetValue(node) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, text, false, false ) end end
-
no one can help you if you make newspaper
-
trailers = { [606] = true, [607] = true, [610] = true, [590] = true, [569] = true, [611] = true, [584] = true, [608] = true, [435] = true, [450] = true, [591] = true } local marker = createMarker(1949, -1705, 13,"corona",2,0,255,0) addEventHandler("onClientMarkerHit",marker, function(thePlayer) local vh = getPedOccupiedVehicle (thePlayer) nm = math.random(400,602 ) if (nm ~= trailers) then setElementModel ( vh, nm ) end end)
-
function drawMessage ( ) local screenWidth, screenHeight = guiGetScreenSize ( ) dxDrawText ( msg, screenWidth/2, screenHeight/2, screenWidth, screenHeight, tocolor ( 255, 99, 8, 255 ), 2.2, "arial" ) end
-
now working but show just what i create i want all player