csiguusz
Members-
Posts
500 -
Joined
-
Last visited
Everything posted by csiguusz
-
Just use "center" instead of "left"
-
It is now "left" in your code.
-
That was my idea too, i tried it but it's not working (for me).
-
Use "center" for horizontal align.
-
It should work if you use it good. It's working for me, I just changed the two events on server-side: addEventHandler('onColShapeHit', col1, function( hitElement ) if getElementType(hitElement) == "player" then setTimer( function( ) triggerClientEvent(hitElement,'anims', hitElement) if isElement(col1) then destroyElement( col1 ) end setTimer( function( ) triggerClientEvent(hitElement,'anims2', hitElement) if isElement( box1 ) then destroyElement( box1 ) end end, 1500, 1 ) end, 50, 1 ) end end ) -- addEventHandler('onColShapeHit', col2, function( hitElement ) if getElementType(hitElement) == "player" then setTimer( function( ) triggerClientEvent(hitElement,'anims', hitElement) if isElement(col2) then destroyElement( col2 ) end setTimer( function( ) triggerClientEvent(hitElement,'anims2', hitElement) if isElement( box2 ) then destroyElement( box2 ) end end, 1500, 1 ) end, 50, 1 ) end end )
-
??? Yes, this seems to be good.
-
Or its better to use outputDebugString (or outputServerLog ) instead of outputChatBox, so you can find the error later in the server log.
-
try this to get, what is the error: outputChatBox("Error: "..mysql_error(database).." Error code: "..mysql errno(database))
-
Add right "function.setServerConfigSetting" to the group's ACL wich the your resource is in.
-
His problem was, that he gets an error, with this he won't get it But i don't know why is he getting the error, maybe there is no record for the given player, or because the query is not ready yet.
-
That won't solve the problem, that will just make mysql_fetch_assoc be called if the query was sucessful. True, but this was the problem, wasn't this?
-
Do you want to trigger 'anims' and 'anims2' events for every player on the server or just for one player (who entered the colshape). For one player use: triggerClientEvent(hitElement,'anims',hitElement) And you should check in both events, that hitElement is a player and not a vehicle or something else.
-
You are welcome.
-
Try checking first if result is not nil (or false) if result then row = mysql_fetch_assoc(result) end
-
edit line 98 to this: dxDrawText (s_Spectators, 10, textY, x, y, tocolor(255, 255, 255, 255), 1.5, 'pricedow', 'left', 'top', false, false, false, true)
-
In line 95 (s_Spectators = s_Spectators..name..'\n' ) change '\n' to something else like ', '
-
setElementDimension won't work here. You can make a car "invisible" by setting its dimension, but you won't be able to drive it. it still draws the vehicle, so the fps will be the same not worse
-
Ah sorry, i can't read I tought you wrote "this is not a PC", but actually you wrote "this is not MY pc "...
-
What did you do with the code? Did you put it in a working resource?
-
It's a laptop? If you know its model, then you could find on google wich vga it is using.
-
If you are in a car and type command invisible, it should make your car invisible.
-
Then sorry, i have not any other idea... Maybe you could check your vga inside of your computer with your own eyes
