Jump to content

Andre9977

Members
  • Posts

    43
  • Joined

  • Last visited

Everything posted by Andre9977

  1. logIn doesn't take the player's name as the second parameter as it seems. Look into getAccount for the account I suppose as you did in the example but commented it out. I suppose you could do this... if(logIn(source, getAccount(getPlayerName(source)), password)) then outputChatBox( "Gracias " ..getPlayerName(source) ..", te has logueado con éxito.", source ) else outputChatBox ( "Ha ocurrido un error. Porfavor pide ayuda a un admin.", source ) end However I'm not sure as it is fairly confusing without proper documentation.
  2. Andre9977

    MTA and SAMP

    They make money out of it and it is non-profit? They do profit from it if they get money from it! After all the bullshit it wouldn't be a miracle if Kye and Woet ran it just to earn money blatantly from hosted list - Kye might have no faith in the project, just to earn back for the years. And for that sometimes pretend that there's some work progress.
  3. Try this: addEventHandler("onClientChatMessage", getRootElement(), cancelEvent)
  4. Andre9977

    MTA and SAMP

    If it is quite obvious that Kye's, nor SA-MP team's attitude towards something will not change it might be the best to leave them alone and give them a chance to enjoy their "great" mod. Bringing up the amount of players for an argument why they think SA-MP is better than MTA is invalid and they don't have other arguments left. SA-MP is a bunch of inefficient code hooks. MTA is fully different, and hence much much better offering much better synchronization and 7 times more functions. There's really no need to cause more drama around the two games. If you get banned for speaking your mind of presenting direct facts about Kye or SA-MP then your point is proven, so be smarter and pull away. Saying that MTA > SA-MP is telling the truth. That community- and game-wise.
  5. I wish there was an easier way to execute a SQL query, so we could just run the query without having to put the table, fields, where clause and possible limit into a separate parameter. SELECT `password` FROM `players` WHERE `player` = '" .. getPlayerName(source) .. "' Also, I don't think we really need to get the `player` again when we already basically have the player's name as our `player`. For some comparing on awkward reasons maybe yes. And also, I think it would be the best to have a SQL table driven by user IDs which are also indexers and queries in theory are better when ran with a indexed integer not a string. executeSQLCreateTable("players", "`id` smallint(7) NOT NULL AUTO_INCREMENT, `name` varchar(21) NOT NULL, `pass` varchar(16) NOT NULL, PRIMARY KEY (`reg_id`)"); Then on your connect function you get the `id` and `pass` where `name` is the player's name. result = executeSQLSelect("players", "id,pass", "player = '" .. getPlayerName(source) .. "'", 1); (also added result limit) the result[1]['id'] you store as the player's ID and in all future queries you use it, for example like this -- where result[1]['id'] from previous code is playerID, for example use the query when your player changes name executeSQLUpdate("players", "player = '" .. newNick .. "'", "id = '" .. playerID .. "'"); Also it would be kind of awesome if there was a function like affected_rows etc. Looks like the inbuilt MTA SQL functions are kind of limited. Sorry for the mistake above. And I'm not sure if any of the code really works, it should.
  6. Use the XML functions or SQL functions based on if you're going to process the data somewhere else but your gameserver. If you are then it is the best to use SQL, otherwise go for XML. All you have to do in the loginHandler is to get the player's username and password from SQL or XML and then compare, so... if username == "user" and password == "apple" then becomes result = executeSQLSelect("players", "player,password", "player = '" .. getPlayerName(source) .. "'") if password == result[1]['password'] then -- log in here Of course you need to check if the account exists in the SQL database. If not then make the player register, etc.
  7. Andre9977

    nooby question xD

    What he meant was a "dd map" which stands for a destruction derby map and DarkDragon already explained the concept of destruction derbys.
  8. Yeah, D:, but now I re-downloaded MTA RACE, after splash screen, it doesn't do anything
  9. Using windows XP, after re-installing MTA SA 1.1.1 RACE, I can't do crap after the "Stop playing with Yourself" message...
  10. I'm not going to format my whole drives, for sure. I'll just give up. No mod like MTA is worth it at the moment,... I am really dissapointed,... Guys, where to get the MTA SA: RACE with map editor!
  11. Someone who knows how to fix or some developers need to help us
  12. Yep, really annoying & I'm a bit disappointed... Really been waiting for the release some time now, though I'm SAMP addict
  13. Tried un-ticking all the things in "Video"... I hope someone can help! Ya!
  14. I'm not protecting him, but TroyRulz007 didn't take SA-MP down, it was SA-MP Administration who did it... They still exist & it was just a little setback... Hacking makes you shit side of a game...
  15. Hello! I'm windows XP user, also have tried in compability mode (95 - Doesn't support SA, 98 - Still crash, 2000 - Still crash). It crashes on server connect, I'm a little bit dissapointed about this, because I was really waiting to play! Connecting to one TDM, I was able to see the message "Ganton" in the tab in lower position on screen... BTW, whats the mode You play with haysacks?
×
×
  • Create New...