-
Posts
1,312 -
Joined
-
Last visited
Everything posted by KariiiM
-
You're welcome, if you stuck on something don't be afraid to post it here, good luck
-
Well, your code look fine, just be sure of these datas are working: ei / exi / ed and exd setElementInterior ( houseMarker[v.name1], v.ei ) setElementInterior ( houseMarker2[v.name1], v.exi ) setElementDimension ( houseMarker[v.name1], v.ed ) setElementDimension ( houseMarker2[v.name1], v.exd )
-
Yeah, btw create the marker on server side to be shown to all
-
Wrong, To make that, you can attach a colshap to ped or create a marker and attach it to the ped and set it invisible. Then use these functions in below: createMarker dxDrawText bindKey unbindKey showCursor --events: onMarkerHit onMarkerLeave
-
I am gonna ask you a question, is you who scripted this part of code? If yes, did you inserted the data to the SQL to update it? Note: I suggest you to use dbFunctions, they're usefull plus you can use them in two types of database, (MySQL / SQLite).
-
This script is totally wrong, "client" doesn't work in client side, plus getPlayerAccount/getAccountName are server sided only..
-
The problem might be because the size of the marker is too small function createMarkers () local result7 = executeSQLQuery("SELECT * FROM `HeretricsHouses`") for i, v in ipairs(result7) do executeSQLQuery("UPDATE `HeretricsHouses` SET `Locked`=? WHERE `name1`=?", 'no', v.name1 ) houseMarker[v.name1] = createMarker ( v.eX,v.eY,v.eZ+0.2, "cylinder", 1.5, 0, 0, 55, 170 ) houseMarker2[v.name1] = createMarker ( v.exX,v.exY,v.exZ+0.2, "cylinder", 1.5, 0, 0, 55, 170 ) setElementData( houseMarker[v.name1],"House.Id", v.name1, true ) setElementData( houseMarker2[v.name1],"House.Id", v.name1, true ) setElementInterior ( houseMarker[v.name1], v.ei ) setElementInterior ( houseMarker2[v.name1], v.exi ) setElementDimension ( houseMarker[v.name1], v.ed ) setElementDimension ( houseMarker2[v.name1], v.exd ) setElementData ( houseMarker2[v.name1], "house.interior", true ) end end
-
You are right @Bonus I just tested my code now
-
He can deal with that by using math.floor
-
Did you even openned a connection to the database?
-
I suggest you to stop using mysql moduls they are too old, use dbFunctions
-
ista3mal dbFunctions ahsan
-
Wrong usage, you have to use dbExec in this case.
-
If I'm not wrong, he just wants to add himself a personal skin.
-
Like that he will never learn
-
Try that and tell me the result, screenX,screenY = guiGetScreenSize() function startTheClock () systemUpTime = 120000 currentCount = getTickCount () dxDrawRectangle (screenX *.40, screenY * .09, 250, 50, tocolor(0,0,0,150)) dxDrawText(tostring(currentCount-systemUpTime+getTickCount()), screenX * .48, screenY * .1, screenX, screenY, tocolor(255,255,255), 2) end addEventHandler ( "onClientRender", root, startTheClock) btw, 2000 not equal 2minutes, it's 2secs !
-
Ahlan, al code bita3ak kan totally messy. l hine rani fixito, --Client side: GUIEditor_Image = {} GUIEditor_Image[1] = guiCreateStaticImage(93,439,44,35,"heart.png",false) function trolled() local sound = playSound("Heartbeat.mp3", false) if (sound and isElement(sound)) then setSoundVolume(sound, 1.0) guiSetVisible(GUIEditor_Image[1],true) setTimer(closewin, 3000, 1) end end addEvent("dienoob", true) addEventHandler("dienoob", getRootElement(), trolled) function closewin() guiSetVisible(GUIEditor_Image[1], false) end --Server side: addEventHandler("onPlayerWasted", root, function (_, attacker) if (attacker and attacker ~= source and isElement(attacker)) then setElementHealth(attacker, getElementHealth(attacker) + 35 ) triggerClientEvent(attacker,"dienoob",attacker) outputChatBox("[--", attacker, 0, 255, 0, true) end end) Tahiyati, KariM
-
Try that, function whenPlayerChangeNick(_, newNick) local newNick = removeHexColorCode(newNick) local serial = getPlayerSerial(source) local q = dbQuery(database,"SELECT * FROM Nick WHERE Serial = ?", serial) local result = dbPoll(q, -1) if (result) then local actualNicks = q["Nicks"].nicks if string.find(actualNicks, newNick) then else local addNewNick = actualNicks .. ", " .. newNick dbExec(database, "UPDATE Nick SET Nicks = ? WHERE Serial = ?", addNewNick, serial) end else dbExec(database, "INSERT INTO Nick VALUES(?,?)", addNewNick, serial) end end addEventHandler("onPlayerChangeNick", getRootElement(), whenPlayerChangeNick)
-
Try something by yourself and post what you have tried, and I will help you
-
Sure, but you have to start alone first and post here what you have done.
-
How is that,Can you just explain a little bit more or just show a screenshot?
-
He didn't give us some details, to get an element's position it must be exists in somewhere, but on this code, he just adding vehicle to onClientGUIClick event parametre which that is incorrect and make no sense.
-
Well, are you hosting your server in local or global? If it's local which means in your own computer, For local server: local disk(C:) /Program Files/MTA San Andreas 1.5/Server/Mods/deathmatch/mtaserver.conf (for me it's like that) For global server: Mods/deathmatch/mtaserver.conf Note: mtaserver.conf is a file you can open/edit it with any editor.
-
mysql resource isn't running,start it and add it to mtaserver.conf to be started automaticly on each time yourserver turn on.
-
Simply, use this function getTickCount
