Jump to content

Mikhail

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by Mikhail

  1. im want to script a gate in the jails of LSPD but i dont know how to map the gate in the interior.. gate = createObject ( 2930, 266.39999, 88.4, 1002.7, 0, 0, 0 ) y got it but how to put in the interior????
  2. when i put the comand many times and created more than 1 barrier.. and put "/sacarbarrera" they are removed but with 1 problems.. 1- WARNING: com\com.lua:138: Bad argument @ 'destroyElement' [Expected element at argument 1] [DUP x4] please help! im new in scripting..
  3. i found the solution! i will share it if someone needs it like me..
  4. so i did this and seems it work! ( the code its right?) but I'd like you to tell me what this means: "vehicles[v].vehicleID" THAT "[v]" thats means the V? It works if I want you to check 1 single ID, but if I want you to check for example: ID 2 and ID 3 How do I define them? try this: local asd = 2, 3 but it does not work, just take the id 2, sorry for my ignorance but not even in tutorials I find the correct way to define various numbers
  5. bro i know.. but how i check the vehicle ID? im not talking about the default vehicles IDs like: police ranger 599, im talking about the IDs from data base of paradise gm...
  6. I've been 2 hours and a half trying to make an "onVehicleStartEnter" for the police faction, that only the police can get on the vehicle, I create an ingame vehicle that has: ID 2 (police ranger 599) but I do not know how to check the ID, I suppose that for someone with experience it will be a basic error but I try and I can not. Here I leave the resource vehicles so you can see it and can tell me how to check the ID of a vehicle (from the base data)
  7. @LyricalMM @LilDawage i do it : it is worked its right??
  8. Estoy con este comando pero no se como ponerle un setTimer, porque al ejecutar este comando y el que cierra, seguidos por elemplo , los tengo bindeado en 5 y 6, y empiezo a apretar 56565656 la barra no espera a llegar a su destino, y queda en un lugar cualquiera, entienden? entonces quiero poner un set timer con el tiempo que la barra llegue a su lugar, para que no lo usen asi seguido "565656" y la barra quede "loca" >.<
  9. Hello , i have this command Now the problem is, I want to be used by only one faction (fcpd fort carson police dept)the issue is that I have an external data base but very simple, it is the Paradise gamemode sure you know what I talking.How do I check from the database if the character is in "FCPD" (this is how the group is written) because I have no idea how to check with an external database ITS ALL ON PARADISE RP. this is the entire script of mysql.lua if u need it
  10. why? im new in script, i dont know what is better or not, i just fixed the bugs to do test scripts there, im new. fthe bus are fixed!
  11. @DeadthStrock very nice! its work to the first test, that was i needed. but i have a question.. what is the difference between this syntax: (its from wiki) and your syntax? (my command fix) @N3xT when I saw the examples that they gave me above, my script was completely incoherent I was using "cancelEvent" to stop the command, I think it was never going to work like that because I canceled it completely. its work with the script of DeadthStrock In any case I ask you, were you going to give a script similar to that of DeadthStrock? because I'd like to see your way of writing the code too, you always learn something new! do not laugh at my script poeple lol
  12. what is the syntax for define cordinates ?
  13. Hello, i create 2 commands, one to open and one to close a bar (like a gate) I run the command /openbar once and it's all well, its rotated 90 degrees, but if I execute it again it rotates another 90 degrees more, and so on the same to close the bar. What should I do when I execute the command a second time , the bar does not open more than what was opened? same for close.
  14. estaba viendo este video. El man scriptea un comando (o evento en el caso del video) para un TEAM en especifico. El tema aca es que yo tengo facciones, y base de datos externa, paradise rp... Que script o que funcion debo hacer para extraer la informacion desde la base de datos? por ejemplo, si quiero checkear de que faccion es el player... que funcion deberia usar? gracias desde ya
  15. Bro, si no escribo el grupo en el ACL, me tira error, en el script de players>main.lua porque en ese main esta definido el grupo que esta en el ACL, y el script lo usa.
  16. si ya lo hice, justo apenas de poner el post me salio, (por logica) y tambien debia agregarlo al ACL
  17. Hola, estoy acomodando el GM paradise, con varios bugs algunos ya resueltos pero cuando voy al comando de /createfactions no hace nada, ni error ni nada. en el script lei esto en el principio de la funcion del comando -- Tricky thing ahead: we rely on groups to be created before we turn them into factions osea quiere decir que el grupo debe estar creado antes? o no hay sistema de grupos? como creo el grupo en paradise? algun comando?
  18. Im trying to create a column in "characters" for a RP gm, im trying to create the column manually... CREATE TABLE `testrole`.`characters` ( `lastLogin` TIMESTAMP(0000-00-00 00:00:00) NOT NULL ) ENGINE = InnoDB Here is the main.lua addEventHandler( "onResourceStart", resourceRoot, function( ) -- create all mysql tables if not exports.sql:create_table( 'characters', { { name = 'characterID', type = 'int(10) unsigned', auto_increment = true, primary_key = true }, { name = 'characterName', type = 'varchar(22)' }, { name = 'userID', type = 'int(10) unsigned' }, { name = 'x', type = 'float' }, { name = 'y', type = 'float' }, { name = 'z', type = 'float' }, { name = 'interior', type = 'tinyint(3) unsigned' }, { name = 'dimension', type = 'int(10) unsigned' }, { name = 'skin', type = 'int(10) unsigned' }, { name = 'rotation', type = 'float' }, { name = 'health', type = 'tinyint(3) unsigned', default = 100 }, { name = 'armor', type = 'tinyint(3) unsigned', default = 0 }, { name = 'money', type = 'bigint(20) unsigned', default = 100 }, { name = 'created', type = 'timestamp', default = 'CURRENT_TIMESTAMP' }, { name = 'lastLogin', type = 'timestamp', default = '0000-00-00 00:00:00' }, { name = 'weapons', type = 'varchar(255)', null = true }, { name = 'job', type = 'varchar(20)', null = true }, { name = 'languages', type = 'text', null = true }, } ) then cancelEvent( ) return end and its gives me in the phpMyAdmin #1064- something is wrong in your syntax near '-00-00 00:00:00) NOT NULL ) ENGINE = InnDB' line 1 please help im new in script and MySQL!
  19. @aka Blue y que debo hacer al respecto? no entiendo porque uno usa una base de datos db4free.net y le crea las bases de entrada nomas, y aca me tira eso
  20. Hola, soy nuevo en lua y quisiera que alguien me ayude a arreglar estos bugs, al parecer no son tan dificiles pero necesito alguien con mas experiencia que me enseñe o me ayude a repararlos.. [2018-10-05 14:34:44] Resources: 31 loaded, 0 failed[2018-10-05 14:34:46] MODULE: Loaded "MySQL 5.0 database module" (0.41) by "Alberto Alonso <[email protected]>"[2018-10-05 14:34:46] MODULE: Loaded "SHA Module" (1.02) by "mabako"[2018-10-05 14:34:46] Starting resources......[2018-10-05 14:34:48] Start up of resource irc cancelled by script[2018-10-05 14:34:48] ERROR: Unable to start resource irc; Start up of resource cancelled by script[2018-10-05 14:34:49] ERROR: sql\layout.lua:91: Unable to create table characters[2018-10-05 14:34:49] Start up of resource players cancelled by script[2018-10-05 14:34:49] ERROR: Unable to start resource players; Start up of resource cancelled by script[2018-10-05 14:34:55] ERROR: sql\layout.lua:91: Unable to create table characters[2018-10-05 14:34:55] Start up of resource players cancelled by script[2018-10-05 14:34:59] ERROR: sql\layout.lua:91: Unable to create table characters[2018-10-05 14:34:59] Start up of resource players cancelled by script[2018-10-05 14:35:05] INFO: Loaded 0 maps with 0 objects.[2018-10-05 14:35:08] Start up of resource players cancelled by script[2018-10-05 14:35:13] ERROR: sql\layout.lua:91: Unable to create table characters[2018-10-05 14:35:13] ERROR: sql\layout.lua:91: Unable to create table characters[2018-10-05 14:35:13] Start up of resource players cancelled by script[2018-10-05 14:35:16] ERROR: factions\factions.lua:102: bad argument #1 to 'ipairs' (table expected, got boolean)[2018-10-05 14:35:18] Querying MTA master server... success! (Auto detected IP:181.94.54.171)[2018-10-05 14:35:18] Authorized serial account protection is enabled for the ACL group(s): `Admin` See https://mtasa.com/authserial[2018-10-05 14:35:18] WARNING: <owner_email_address> not set[2018-10-05 14:35:18] Server started and is ready to accept connections![2018-10-05 14:35:18] To stop the server, type 'shutdown' or press Ctrl-C[2018-10-05 14:35:18] Type 'help' for a list of commands.[2018-10-05 14:35:18] _ abstenerse scripterpagos (deos pido ayuda sobre unos scripts, no un gm entero y me quieren cobrar..) gracias desde ya.
×
×
  • Create New...