-
Posts
1,134 -
Joined
-
Last visited
-
Days Won
37
Everything posted by NeXuS™
-
Do you have the server-sided script for this?
-
This has to be client-sided, as you can only use dx functions on client-side. You'll have to use triggerServerEvent for the setPlayerMoney, as it has to be synchronized. For the panel, Drawing functions. To detect the click, onClientClick and isMouseInPosition.
-
@Jayceon you might consider looking into your script.
-
I'm trying very hard to understand any of this, but it feels impossible. Maybe ask it again, with proper grammar?
- 1 reply
-
- screen shots
- pantallazos
-
(and 1 more)
Tagged with:
-
Do you want to restart it after 24 hrs of startup or at 00:00?
-
Esse script esta correto ? Não Funciona me ajuda !
NeXuS™ replied to Jaaaack's topic in Programação em Lua
And if you want to keep this post in this section, and not have it moved to the Other languages one, I'd start writing in English. Do you have the client-sided file for this resource? -
Esse script esta correto ? Não Funciona me ajuda !
NeXuS™ replied to Jaaaack's topic in Programação em Lua
Jesus christ. Please use [ code] tags... -
Probably you are low on video memory. Consider replacing your video card.
-
local fileHandle = fileCreate("mtaserver.txt") function writeRunningResources() if not fileHandle then fileHandle = fileCreate("mtaserver.txt") end for i, k in pairs(getResources()) do if getResourceState(k) == "running" then fileWrite(fileHandle, "<resource src='" .. getResourceName(k) .. "' startup='1' protected='0'/>\n") end end outputChatBox("Got resources in the list.") fileClose(fileHandle) end addCommandHandler("getresources", writeRunningResources) Here.
-
Could be a virus. Do you have an anti-virus installed? If you don't, please install one.
- 1 reply
-
- 1
-
-
The error is created by MTA. You have to give ACL access to the resource, the same as you had to do to your user. Just replacing "user.username" with "resource.resourcename".
-
Try setting a password for the root user in your phpMyAdmin. And please change to English language or translate the errors next time. And I already wrote that you should move the dbConnect out of the function, as you don't want to connect to it every single time it is called.
-
Try installing this runtime and restart your PC after it is done.
-
createObject, createColSphere/createMarker, onColShapeHit/onMarkerHit, onColShapeLeave/onMarkerLeave and getElementModel for the gate. For the safe zone, you'll have to use createColShapere/createMarker, onColShapeHit/onMarkerHit (I'd use colshapes for this tho), onColShapeLeave/onMarkerLeave, onPlayerDamage and cancelEvent.
-
If the connection failed, you should get an error. cnn = dbConnect( "mysql", "dbname="..base..";host="..server,user,contra,"share=2") if cnn then outputDebugString("MySQL connected.") else outputDebugString("MySQL couldn't connect.") end function registrar(user,clave,correo) res = dbQuery( cnn,"select count(codCuentas)as nombre from cuentas where usuario='"..user.."';") result = dbPoll( res, -1 ) ... end And I'd consider using dbPoll with a time limit of -1, because it can cause freezes.
-
Useless code. Would stop after the first object found.
-
You could use this info.
-
When I get home I'll fix your script. Btw, the code above is full of errors.
