Jump to content

csiguusz

Members
  • Posts

    500
  • Joined

  • Last visited

Everything posted by csiguusz

  1. That was my idea too, i tried it but it's not working (for me).
  2. csiguusz

    Help.

    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 )
  3. ??? Yes, this seems to be good.
  4. Or its better to use outputDebugString (or outputServerLog ) instead of outputChatBox, so you can find the error later in the server log.
  5. try this to get, what is the error: outputChatBox("Error: "..mysql_error(database).." Error code: "..mysql errno(database))
  6. Add right "function.setServerConfigSetting" to the group's ACL wich the your resource is in.
  7. 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.
  8. 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?
  9. csiguusz

    Help.

    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.
  10. csiguusz

    Help.

    it gives stuff in the 'weapons"n"money' event, if it gives twice as much then maybe this event is triggered twice somewhere.
  11. Try checking first if result is not nil (or false) if result then row = mysql_fetch_assoc(result) end
  12. 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)
  13. In line 95 (s_Spectators = s_Spectators..name..'\n' ) change '\n' to something else like ', '
  14. 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
  15. Ah sorry, i can't read I tought you wrote "this is not a PC", but actually you wrote "this is not MY pc "...
  16. What did you do with the code? Did you put it in a working resource?
  17. It's a laptop? If you know its model, then you could find on google wich vga it is using.
  18. If you are in a car and type command invisible, it should make your car invisible.
  19. Then sorry, i have not any other idea... Maybe you could check your vga inside of your computer with your own eyes
×
×
  • Create New...