Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You can set multiple columns in a single query, simply use commas to separate them, like this: "UPDATE ffw_users SET IngameName = ?, MySecondData = ?, MyThirdData = ? WHERE AccountName = ?"
  2. Use whatever you are using to identify who's data belongs to who.
  3. Because you aren't specifying to who to set the data to, you need to specifiy it with his account name or whatever you are using, like this: dbExec ( databaseINFO.connection, "UPDATE ffw_users SET IngameName = ? WHERE AccountName = ?", getPlayerName ( thePlayer ), getAccountName ( getPlayerAccount ( thePlayer ) ) ) Also, use dbExec instead of dbQuery, since you don't need to get any data from it, just to know if it updated or not ( true/false ).
  4. As far as I know, they are using: setGameSpeed
  5. Castillo

    Question

    You're welcome.
  6. Castillo

    Question

    You mean that you want a warning system? use a table, when the player gets killed the first time, add the player to the table, and when you check the AFK time, also check the warning level.
  7. Castillo

    Question

    I don't understand the problem, nor why would you kill someone for being idle for a second, it's rather stupid.
  8. Castillo

    ayuda puerta

    El segundo argumento de moveObject es el tiempo en milisegundos que tardara en llegar a su destino, y vos no lo especificaste. Ejemplo: moveObject ( objeto1, 1809.599609375, -1886.400390625, 16.39999961853, 0, 0, 270) Despues de "objeto1" tenes que poner el tiempo. Por ejemplo: 1 segundo son 1000 milisegundos, asi que quedaria asi: moveObject ( objeto1, 1000, 1809.599609375, -1886.400390625, 16.39999961853, 0, 0, 270 )
  9. Your best chance is to contact the MTA devs in the MTA IRC channel. Top left of the website "IRC chat".
  10. for _, team in ipairs ( getPlayersInTeam ( team ) ) do outputChatBox("(TEAM): " ..getPlayerName(source)..": "..color..""..message, root, 255, 255, 255, true ) end You must change 'root' to 'team'.
  11. I guess the control is being enabled by something else, try adding a timer of some seconds to disable it.
  12. Es una funcion client-side, y tu script es server-side.
  13. Have you tried adding a output? like: outputChatBox ( "HIDING RADAR" ) to know if the function is being executed or not. P.S: Use 'resourceRoot' for addEventHandler, else it's going to execute that function everytime a resource starts, ANY resource.
  14. Add: b = 0.001 After: x,y,z = getElementVelocity(vehicle)
  15. I don't understand what do you mean, you want to reset "b" to 0.001 each time you hit the marker?
  16. You can name the file whatever you want, the content is what matters. Same for scripts, you can name them "myScript.lolipop" and it'll still work.
  17. It is a XML file, you can use XML functions.
  18. Create a function to get a random marker position, which skips the ones already obtained, to know which ones have been obtained, store in a table the table index.
  19. Well, it's rather pathetic to do so.
  20. Ah wait, these events are supposed to be client-side? if so, then you should be using triggerClientEvent.
×
×
  • Create New...