Jump to content

Callum

MTA Contributors
  • Posts

    865
  • Joined

  • Last visited

Everything posted by Callum

  1. Callum

    On my server

    You're asking how to get more players to play on your server, or...?
  2. The same as for Windows (C++), they use the same source code (with a lot of OS-specific segments).
  3. Callum

    PROBLEM

    Your brother is on the same LAN, right?
  4. This can all be done by resources, so it isn't necessary for MTA to be adapted.
  5. Unless your host provides DDoS protection at a hardware-level you cannot really prevent it.
  6. Did you really create this script? I think if you did, it would be very obvious.
  7. Callum

    Abusive Banning

    What the hell is 'seal clubbing'?
  8. The wiki has all of the information and links you will need, in order to learn Lua.
  9. ( query, [arg1, arg2, ...] ) So, for example: SQL.Query("SELECT id FROM accounts WHERE username = ? LIMIT 1", username)
  10. Yeah, on line 7 just insert: addEventHandler("onResourceStart",resourceRoot,SQL.Connect) And sure, it is open source after all.
  11. Callum

    Server Time

    Nobody starts off knowing how to script, it's a process of learning through failure.
  12. Not sure how you can go about converting it, but here is a simple SQL 'wrapper' I created that provides 'query' and 'execute' functionality (the only two functions you really need). SQL.Connect needs to be called in order for the connection to be established. You can change the dbConnect arguments to change it to a MySQL database.
  13. tinypic is an absolutely awful image host. Like ImageShack, it's filled as much as possible with adverts and the images take forever to load. I'd recommend imgur for image hosting. It allows you to resize the images you upload, if you wish.
  14. Wouldn't text-to-speech be more suitable, especially if you're announcing something like 'Security Breach'. There are endless text-to-speech services online.
  15. Callum

    BASS ERROR

    BASS Error 2 is 'BASS_ERROR_FILEOPEN' (cannot open the file).
  16. You don't really need to run the code if your sole intention is to 'figure out the code' and create equivalent code from scratch. I don't see why we should help you to fix resources acquired without permission.
  17. Callum

    Server Time

    The method of using setMinuteDuration and setTime is a lot more recommended than using an extremely frequent timer.
  18. Create such a function in Lua and then make it an export, which you can then call from the PHP SDK. You can use PHP SDK for anything, so long as you make a Lua function for it.
  19. Completed it. Is this to help you make more profit from selling scripts or something? There may be a gap in the market for housewives
  20. Can't have been that hard to test.
  21. function respawnInactiveVehicles() for _, vehicle in ipairs(getElementsByType("vehicle")) do if not getVehicleOccupant(vehicle) then respawnVehicle(vehicle) end end end setTimer(respawnInactiveVehicles,5000,0) EDIT: This code isn't ideal as, for example, vehicles with passengers and no driver will respawn. However it fixes the issue you were having.
  22. What is the exact message you get when using debugscript?
  23. Callum

    MTA IV ?

    Considering how much work has been put into MTA SA over the last ~8 years, I think even 'MTA V' should be a gradual and low-priority transition. San Andreas may not have the best graphics or the most native features, but MTA can more than compensate for that. Moreover, in 2-3 years time there will probably be another latest and greatest GTA that everybody wants MTA to be ported to.
  24. Callum

    My server

    You can download plenty of sample code from the community site.
×
×
  • Create New...