Search the Community
Showing results for tags 'phpmyadmin'.
-
I can't find any tutorial about something like this but I know it's possible because I searched if this question was made before in the forum and yes, I saw some codes and explanation from users and mods, but it doesn't work for me, because I'm using mysql and phpmyadmin, the examples doesn't match with my project, so I was wondering if someone could help me to understand how to save the data from the player's weapon and ammo... this is what I tried first: ---------this is inside of a function that saves all the player's info-------- local weapon1 = getPedWeapon (source) local weapon = getWeaponNameFromID (weapon) local ammo = getPedTotalAmmo(source) --------the info it's send to the table (this was simplified)----------- local sendInfo = exports.mysql:_Query("UPDATE characters SET weapon=?, ammo=? WHERE account=?", weapon, ammo, account) Since i've started, many problems as "getPedWeapons a nill value" appeared in the console, also "expected number, got boolean", etc. If there is a way to make a system like this without the getaccountdata/setaccountdata... I would like to know how to make it. I'm not asking for a full code, just some of knowlegde
- 7 replies
-
- mysql
- phpmyadmin
-
(and 3 more)
Tagged with:
-
I've been trying to save the position of the player's character and it saves... but in a new table, not in the main one where its the account's name, the character's name and the rest. -> This is what happens<- This is the code I'm using for the "character money, position, and health" // i translated some concepts to english so you can understand easly what I'm trying to make: (server-side) function saveDataCharacter() local x, y, z = getElementPosition(source) local money = getPlayerMoney(source) local health = getElementHealth(source) local sendInfo = exports.mysql:_Exec("INSERT INTO characters (x,y,z, money, health) VALUES (?,?,?,?,?)", x, y, z, money, health) if (sendInfo) then iprint("Data saved") else iprint("Error saving") end end end addEventHandler("onPlayerQuit", getRootElement(), saveDataCharacter)
-
Well, it's too late to delete it, so if a mod or admin see this, please delete this or move it, I solved the problem
-
في واحد عرف باس روت الphp حق خادمي قمت غيرته بس نسيته كيفف ارجعهه؟؟؟؟؟؟؟؟ يا ريت مساعدة لو في كود من الputty يرجعه عطوني ياه بكون ممنون لكم
-
ProSystemsHz.com - Calidad, Seguridad & Economia en tus Servidores Quienes somos? http://www.ProSystemsHz.com es una Empresa dedicada exclusivamente al alojamiento de servidores SA:MP, MTA, CS:GS, Minecraft y VPS Linux/Windows Contamos con personal experto, soporte tecnico amigable disponible la mayor parte del dia Proteccion DDoS, 99.9% de tiempo en linea garantizado, Panel de control profesional propio Ofrecemos un exelente servicio a un precio economico, puedes comprar los slots que necesites cada slot a tan solo 8 centavos Algunos de Nuestros Beneficios Proteccion DDoS Juega sin interrupciones con la mejor proteccion DDoS, así tu servidor estara protegido contra envidiosos Espacio ilimitado No te preocupes por el tamaño de tus archivos, te brindamos espacio ilimitado en cualquier plan de Game Hosting Activacion instantanea No esperes para tener tu servidor activado, pides y en segundos tienes los datos necesarios para montar tu servidor y no te cobramos gastos de instalacion Backups Gratis Los Problemas pueden pasar en cualquier rato, ProSystemsHz esta preparado para cualquier problema con su archivos respaldados con Amazon. Soporte tecnico Si tienes problemas con tu servidor te ayudaremos con gusto, somo expertos y nos apaciona lo que hacemos, puedes contactarnos via sms/email/tickets Servidores Potentes Contamos con servidores capacitados y potentes para ofrecerte un buen servicio al cliente y dar una experiencia muy buena METODOS DE PAGO: Mensajes de texto (SMS), PayPal, Western Union, Y muy Pronto MercadoPago. Pagina web: http://www.ProSystemsHz.com Pagina en facebook: https://www.facebook.com/ProSystemsHz Email: [email protected] Tambien ofrecemos chat en vivo desde la pagina web
- 16 replies
-
- mta
- gamehosting
-
(and 2 more)
Tagged with: