Jump to content

GhostXoP

Members
  • Posts

    402
  • Joined

  • Last visited

Everything posted by GhostXoP

  1. If the user is not online, it will return false right?
  2. Exactly what i thought, until Made sense about it being optional, i believe the wiki needs its optional argument description to be reworded to this.
  3. It says password is optional in the wiki, does this mean i can just plug in the username and get the account?
  4. Thanks for clearing that up I'm going to test this today, to see for myself if the data is a pointer to a line in Internal.DB or just a Pointer to a random class in memory.
  5. Nevermind, as far as i know, and read they are.
  6. In MTA's getPlayerAccount It returns an account. Is this number a reference to a data spot in Internal.db? can this number value be reused between games? Say getPlayerAccount(thePlayer) returns F0003000, and then say i turned the server off, turned it back on and used that number to reference a players account, would it reference the same account? In other words, the Account object returned by getPlayerAccount(thePlayer), is it reuseable? say i stored this value (account object) and reused it when the server turned back on, to check the player name of the account, would it be an invalid reference? Or would it still resemble the players account?
  7. Say i have 10 players on line, with a client side and server side script, each script contains one variable called ScriptVarCLIENT and ScriptVarSERVER correct me if im wrong (if i am, tell me, its the question basically), but would that mean there are 10 ScriptVarCLIENT variables (Per client, there is one duplication of this variable), and only 1 ScriptVarSERVER Variable? (For the server, no duplication only one variable) ?
  8. So i assume if you change a vehicles lights client side Not everyone can see it? But if you change the lights on a vehicle server side, everyone can see it?
  9. When i go to set a vehicles health by using setElementHealth(Vehicle, 100) The vehicle sets fire and explodes What can i do to keep track of the vehicles health otherwise?
  10. This dbExec( connection, "UPDATE ?? SET ??=?", tableName, columnName, columnValue ) is still confusing to me. Where would i specify which row? And for creating tables, wouldn't i do dbExec( ServerDataBase, "CREATE TABLE IF NOT EXISTS ClientData (username TEXT, data TEXT)")
  11. Hows this dbExec(ServerDataBase, "UPDATE ClientData SET data ="..Data.." WHERE username=".."'"..Username.."'".." AND password=".."'"..password.."'")
  12. That shows for setting data, what about updating data?
  13. username TEXT, password TEXT etc? What if the table is already made?
  14. How would i add a new row using dbExec? Im in the direction of INSERT INTO -table- but would i then just put (value col 1) (value col 2) etc? dbExec(ServerDataBase, "INSERT INTO ClientData (username, password, data) VALUES ("..Username..","..Password..","..Data..")" ?
  15. I have checked my Internal.DB to see if the data being retrieved is there, and it is. The function i have written takes blocks of strings out of the db for a player, combines it, then turns it into an array for the player data. I have just found out, if i log out, server still on, and log back in, everything is fine. however if i log out, turn the server off, restart the server (the console box) and try to join, the first block, or key of data from getaccountdata returns false. I have checked my internal.db and its all there. This only happens when i turn the server off, and turn it back on then join it. Its fine when left on and log out then log back in. What could be wrong? Edit, the fixes before turned out to not fix it, any suggestions aimed at helping to fix the problem are welcomed.
  16. are there a way to set any other lights than the default head lights on a vehicle? (Turn signals, flood lights)
  17. Is there a client side way to get the vehicle the ped is in? If not, should i just set the pedestrians element data to the vehicle they are currently in instead? (on vehicle enter)
  18. Or a function that takes an array to set or get the damage type for each damageable part of the vehicle. So we can save the vehicles state. Not super needed but, would be nice to have
  19. You can't set a vehicles damage at all?
  20. Is there a server function that sets a vehicles damage?
×
×
  • Create New...