Jump to content

'LinKin

Members
  • Posts

    636
  • Joined

  • Last visited

Everything posted by 'LinKin

  1. 'LinKin

    [Help] SQL

    Well, if they are TEXT, then you need to do somethig like: executeSQLQuery ("UPDATE `Vehs` SET `ColorR` = ?, `ColorG` = ?, `ColorB` = ?, `cost` = ? WHERE `Account` = ? AND `Model` = ?", tostring(r), tostring(g), tostring(b), cost, getAccountName(getPlayerAccount (source)), id) EDIT: You don't need tostring(getAccountName(getPlayerAccount (source))) because getAccountName returns a string by default.
  2. 'LinKin

    [Help] SQL

    What are the columns' types that you defined when you created the table?
  3. 'LinKin

    [Help] SQL

    I see no error on that line, unless the variables you define aren't what you think they are. Re-check them
  4. 'LinKin

    [Help] SQL

    What error does the debug output?
  5. Thanks but, does it teleport the player to a "New" GTA map?
  6. Hello, On wiki it says that we can have up to 65535 dimensions, it also says it's useful for interiors. Is there a list of 'interiors' for MTA? And also, when you set the element's dimension, does it teleport the player to a New GTA map? Just like if 2 players are in the server and both are playing in Los Santos but they are in separated dimensions, so they can't see each other. If that's not the case, is there a list of dimensions for MTA? PS: What's the default dimension? Thanks.
  7. Thanks, Look guys I found some company, they say the bandwidth is unlimited, but they also say this about it: "Unlimited traffic: No additional costs due to traffic (if average traffic consumption continuously exceeds 60 Mbit/s over a timespan of at least 5 days the connection is switched to 10 Mbit/s)." But since I don't really know about this, I wanted to ask you what that means. Is 60 Mbit/s a lot? Is easy to reach it in 5 days? Thanks for any help.
  8. 1.3.5 It didn't need... I even changed the resource's name like 5 times and still it worked without rights
  9. Hello, I just noticed that fetchRemote requires ACL rights in MTA 1.4 This doesn't happen in MTA 1.3, it doesn't require to be added into the ACL. So if this changed, some other things might have changed too, right? Where can I find what changed regarding scripting functions into MTA 1.4? Thanks.
  10. Yeah, I readed it at stackoverflow. Thank you.
  11. 'LinKin

    SQL Question

    It does. I mean, when you do SELECT, you get the row (after searching into the table) Then if I want to update a value of this row, according to my code, I would be searching into the table again for finding the row that I had already found in the previous step. So the question is how can I avoid making a search into the table AGAIN in order to UPDATE a value?
  12. Hello, Time ago when I asked for this function someone gave me a php page. function getServerIp() callRemote("http://www.nub.hj.cx/getServerIp.php", function(value) if (value ~= "ERROR") then return value end end) return false end The things is that that page is no longer working... I really need to find another one, could someone help out with this? Thanks.
  13. 'LinKin

    SQL Question

    Hello, I'm returning one row of a table by doing the SQL command: SELECT * FROM etc.... As soon as I get the result, I update a column's value of that row; But, I'm doing it this way: UPDATE `myTable` SET `myColumn` WHERE blabla So I'm like searching for the row once AGAIN. How can I avoid this? I mean if I already got the row by doing the SELECT command, how can I update a value of THAT row without making ANOTHER search? Thanks.
  14. Yes, one of the options was vultr. Thanks mate.
  15. Hello, I'm looking after a VPS in UK location. I've seen a couple of them but they're extremetly overpriced Do you know some? Thanks.
  16. Haha yeah.. I meant the logical thinking. Funny to see people arguing about this
  17. Yes, isElement should do fine. Thanks.
  18. Hi, I'm using a timer and passing a player as an argument; setTimer(Func, 3000, 1, aPlayer) So, inside the implementation of the 'Func' function, how can I check if the player that I passed to it still exists? Would it be enough to make: function Func(thePlayer) if thePlayer then code... end end ? Sometimes our scripts show warnings saying things such as "Bad player 'element' pointer (1)" so if that would be the case in this script, thePlayer variable would still be true. I was thinking about getElementType(thePlayer) == "player" But still not sure
  19. IMO, It's pretty pretty hard for a guy who doesn't know at least a little big of programming, I know a couple, and it's so hard to teach them because they don't have the logic that programming requires.
  20. Willing to pay some small money?
  21. 500 - Internal Server Error When trying to download 1.3 for Linux/Windows
  22. Yeah Max, I know that, but look at the post that I made before yours. addEvent from Wiki: allowRemoteTrigger: A boolean specifying whether this event can be called remotely using triggerClientEvent / triggerServerEvent or not. So onMapStarting would be being triggered from client?.. Kinda wierd.
×
×
  • Create New...