-
Posts
421 -
Joined
-
Last visited
Everything posted by Piorun
-
But you know guys I wasnt sure that is legal because i'm using not-mine-software to build mine-software (i mean im using MTA to build server). That's the thing. If im using MTA for earn money im not stealing some of "MTA's codes". You know what i mean? I know few ppl are getting money from servers on SA-MP. But SA-MP isnt Open Source etc. So once I ask - Is this legal to earn money from my server but using Open Source Software Multi Theft Auto?
-
Hi, I have a question for you. Is this legal to gets any profits (you know, money) from server? I mean from premiums etc.
-
How to get time beetwen rendered for ex. first and second frame?
-
No, no i just wanted to ask if its possible but i see it is so thanks
-
Is this possible to create custom event and use it then on addEventHandler?
-
Ok nevermind . I code 4 times using sha256 but its not what i wanted to so i had an "error" in code and its now fine. Bye .
-
Mhm ok but when i hash string (for ex. from guiGetText) im taking different than original. That's why im asking about MySQL column and coding this.
-
Hi guys Im creating register/login script but i need to code/decode password. Im using sha256() function and im putting this into MySQL. How to decode that password or what type of column coding should i set (now i have utf_general_ci)?
-
Hi I want to ask u why this: local handler = exports.infmysql:getHandler() returns name of function but not specific value? Function getHandler() should return mysql handler (and it returning on source resource called infmysql). Meta.xml is wrote good cause i made it using wiki.
-
So i must delete parent gridlist to work correctly? @EDIT ok anyway i'll try to do something. Thanks a lot
-
Step by step: 1. I have gridlist. 2. Using some table i want to add columns which names are same as names in this table. 3. For ex. table have 13 elements and 13 columns are added to gridlist. 4. After that i want to delete those columns from gridlist (all) - when i check (outputChatBox(tostring(guiGridListRemoveColumn...))) function corectly removing 13 columns (result - 13 times "true") but only 2 are really removed. What's wrong (and this is this code)?
-
Hi guys. Here i show you code: addEventHandler("loadTableColumns", root, function(columnTable) if #adminpanel.databasegridlist.column > 0 then for i=1,#adminpanel.databasegridlist.column do guiGridListRemoveColumn(adminpanel.databasegridlist[1], adminpanel.databasegridlist.column[i]) table.remove(adminpanel.databasegridlist.column, i) end end for _, column in ipairs(columnTable) do adminpanel.databasegridlist.column[#adminpanel.databasegridlist.column+1] = guiGridListAddColumn(adminpanel.databasegridlist[1], column.name, 0.1) end end) Problem is that this function "guiGridListRemoveColumn" doesnt work correctly. It remove only 2 first columns (but it returns number of removed columns correctly). columnTable is column from "PRAGMA table_info(...)" so it returns columns of database. Columns in gridlist are added fine. Help pls .
-
Forget to write - ofc its working but could you tell me what is difrence between pairs and ipairs?
-
Yo - those codes aren't same? @EDIT Aaaaw ... pairs. Ok bro thanks.
-
3 - its number of rows in table.
-
Another proble i have that i dont get any outputed message i dont know why: local query = dbQuery ( database, "SELECT * FROM characters" ) local result, num_affected_rows, errmsg = dbPoll ( query, -1 ) for _, row in ipairs(result) do for k, v in ipairs(row) do outputChatBox(tostring(k)..", "..tostring(v)) end end I have "something" in this table (3 rows are - i checked it using program) but nothing happen. Why?
-
Ok one more i need - how to get list of columns in table?
-
Thanks mate
-
Srsly in the name of topic is everything so: What query i should use to get all tables in database?
-
Hi guys, I want to delete something from table and move other parts of table to this place (one place back). I dont explain it good so i show example. My table: tab = {1,2,3,4,5,6} And i want to delete 5th part of this table so ill take something like that: tab = {1,2,3,4,__,6} I want now to move 6th, 7th, 8th... back. Something like that: tab = {1,2,3,4,6} How?
-
Hello, I watched today some streams and i get an idea to include twitch.tv sdk into MTA. What u think about?
-
Hi guys I have a server with CentOS. When i downloaded mta-linux server files and i wanted to run mta-server file i took this message: "/lib/libc.so.6: version `GLIBC_2.6' not found (required by ./core.so) ERROR: Could not load ./core.so * Check installed data files. Press enter to continue..." What's wrong? I understand i dont have GLIBC_2.6 so how to install it?
-
lawl i love you <3
-
Hi guys I thought few days ago to create 3d hud, but it's sucks using dxDrawMaterialLine3D (it doesnt looks like in the games for ex. in crysis). Meybe it could be possible to add rotation in 3 dimmensions into dxDrawImage function? What u think? If you want to know why its not possible to do it using dxDrawMaterialLine3D i can post example image here.