-
Posts
243 -
Joined
-
Last visited
Everything posted by Desaster
-
an other question : is it possible to remove a column from a table and to rename it if yes wish funcs I can use
-
hello, I wanted to ask you if I can use the same the same sql strings for sqlite and mysql ? I saw this in a script and I wanted to know if I can use it in sqlite or not dbExec("UPDATE blabla SET hi=?, ho=?, oh=?, tit=?, cha=?, cho=?, titt=?, wfa=?, fwfn=?, wfwf=?, wfwf=?, wfw=?, wdwd=?, wdwd=? WHERE name=?", fe, ww, faw, waffa, wdaf, wfaf, wafa, wafwa, wafwaf, wafwfa, eafwfa, wafwf, faf, wfwf, wfwfw)
-
1) fileDelete deltes the file but your client have to download it it each time he connect and that sucks 2) cache="flase" this saves the file on the clients RAM so he also need to download it each visit and that also sucks =====> compile scripts that's the best way
-
xCore Servers | High quality hosting solutions
Desaster replied to xCore Servers's topic in Hosting solutions
Highest Recommendation for their Services -
that's not what I mean . I mean when any player login the ammunation resource give him *2 ammo as he had before idk why it's a bug
-
well I located the error in the ammunation shop and idk why everytime the player login he get double ammo well here is my function server: addEvent ("wepShop", true) addEventHandler ("wepShop", getRootElement(), function(name, id, ammo, cost) if not id then return end if (getPlayerMoney (source) >= tonumber(cost)) then exports["TopBarChat"]:sendClientMessage ( "You bought a " .. name.." for $"..cost,source,0,255,0,TopBar, 5 ) takePlayerMoney (source, tonumber(cost)) local account = getPlayerAccount ( source ) setAccountData( account,"GunsMoney",tonumber( getAccountData( account,"GunsMoney" ) or 0 ) + tonumber(cost) ) giveWeapon ( source, id, ammo ) else exports["TopBarChat"]:sendClientMessage ( "You can't afford to buy this!",source,255,0,0,TopBar, 5 ) end end) hmm the client side isn't needed but it has a function with onClientGUIClick that triggers this event triggerServerEvent ("wepShop2", getLocalPlayer(), wepName2, wepID2, wepCost2) ps: id / name / cost are defined thnx
-
hi I saved the wepon id's and weapon ammo's in a SQL table but the problem each reconnect the player get + 50% of the weapons he had any idea why ? ps: I used this func on login giveWeapon
-
viewtopic.php?f=91&t=68460
-
hmmm as I saw in wiki that method hmm well I try that resource
-
client="1.3.4" /> ="client.lua" type="client" /> ="mod_c.lua" type="client" /> src="mods/bullet.txd" download="false"/> src="mods/bullet.dff" download="false"/> src="mods/infernus.txd" download="false"/> src="mods/infernus.dff" download="false"/> this is my meta but idk why the files dowload when I start the resource can you help me pls
-
hi, useing this downloadFile how I can define were the file will be downloaded ^^ or it will be placed in the same place where i putted it but in the clients pc also if I use fileExists and the I put a path there it checks if it exist in the server or in the clients pc thnx for answer ps : all must be client side
-
setCameraMatrix
-
I already did but I just get that result
-
here are the most useful functions for sql https://wiki.multitheftauto.com/wiki/ExecuteSQLQuery to update data use UPDATE and to put values use INSERT INTO ^^
-
ahhhhhhhhhhhhhhhhhhhhhhhhh thnx
-
hi I wanted to ask what are the supported formats by mta for the lua script as I know .slua / .lua / .clua is supported
-
hmmm work / and don't work I get a false result result: -
-
as the title says how I can get the GMT time of a player ?
-
use a web radio link like 181-power
-
hi , I want to count the ammount of shooted ammo by every weapon than save it but I really can't find how I thought might be useful onClientPlayerWeaponFire ah idk gimme ideas
-
functions always star without caps like this getPlayerMoney not GetPlayerMoney