
Msypon
Members-
Posts
76 -
Joined
-
Last visited
Everything posted by Msypon
-
hi guys i need help, so i have downloaded the resource "hud_messages" then my question is: how to make texts not be repeated? for example this image: http://img341.imageshack.us/img341/3117 ... 084031.png, i just want the same text one time ( not being repeated ), can you help me?
-
Line 21: attempt to index field '?' addEventHandler ( 'onResourceStart', resourceRoot, function ( ) executeSQLCreateTable ( 'SQLData', 'money INT, serial STRING' ) end ) addCommandHandler ( 'savesql', function ( player ) local serial = getPlayerSerial ( player ) local money = getPlayerMoney ( player ) executeSQLQuery ( 'UPDATE SQLData SET money = ? WHERE serial = ?', money, serial ) end ) addCommandHandler ( 'loadsql', function ( player ) local serial = getPlayerSerial ( player ) local result = executeSQLQuery ( 'SELECT money FROM SQLData WHERE serial = ?', serial ) if ( type ( result ) == "table" and #result == 0 ) or not result then return setPlayerMoney ( player, result[1].money ) end end )
-
ok, thanks solid and csigusz for the help
-
function autoLoginSaveSQL ( ) local account = getAccount ( getAccountName ( getPlayerAccount ( source ) ), pass ) executeSQLQuery ( 'UPDATE autoLoginSQL SET account = ?, password = ?', account ) end addEventHandler ( 'onPlayerLogin', root, autoLoginSaveSQL ) function autoLoginFromSQL ( ) local account = getAccount ( getAccountName ( getPlayerAccount ( source ) ), pass ) executeSQLQuery ( 'SELECT account, pass FROM autoLoginSQL WHERE account = ? password = ?', account ) logIn ( source, account, pass ) end addEventHandler ( 'onPlayerJoin', root, autoLoginFromSQL ) what is wrong?
-
addCommandHandler ( 'remspe', function ( source, cmd ) if ( isElement ( box[source] ) ) then destroyElement ( box[source] ) triggerClientEvent ( root, 'pRemove', root ) end end )
-
Thx worked, i need another help with this addEvent ( 'pRemove', true ) addEventHandler ( 'pRemove', root, function ( ) if isElement(sound[source]) then stopSound ( sound[source] ) destroyElement(sound[source]) sound[source] = nil end end ) The sound is not stopping
-
It worked prestagi, but only me can listen the music, I want everyone
-
Hi guys, i want to attach a sound box on my car but what is wrong? server box = { } addCommandHandler ( "caf", function ( source, commandName ) local veh = getPedOccupiedVehicle ( source ) local x, y, z = getElementPosition ( veh ) box [ source ] = createObject ( 2229, x, y, z ) local ax, ay, az = getElementPosition ( box [ source ] ) attachElements ( box [ source ], veh, 0.3, -2.3, 0 ) triggerClientEvent ( 'boxattach', root, box, ax, ay, az ) end ) client addEvent ( 'boxattach', true ) addEventHandler ( 'boxattach', root, function ( box, ax, ay, az, url ) sound = playSound3D(url, ax, ay, az, true) setSoundMaxDistance ( sound, 100 ) attachElements ( sound, box [ localPlayer ] ) end )
-
How to get all [lua=code]dxGetStatus[/lua] in a GUI?