Search the Community
Showing results for tags 'value'.
-
In OwlGaming Mode MTA SA RP Server sometimes my items getting Value 2. And it want to be Value 1 Defualt,When it gets Value to it converts to Infinity mode.Please someone help me Why it's happened and help me how to get my own value 2 without and admin, I Mean how to bug a Value 1 item to Value 2. Please Someone Help Mee !!!
-
- owl gaming
- bug?
-
(and 3 more)
Tagged with:
-
Attempt to do arithmetic on a nil value. And the code is: --Here you have the tables playersT = {"VaporZ"} moneyT = {"100"} addCommandHandler("deposit", function(player, commandName, amount) --Here is our "nil" value (I often use "100" for "amount", when I have $12,000) for k, v in ipairs(playersT) do if(string.match(playersT[k], getPlayerName(player))) then if amount and (tonumber(amount) <= getPlayerMoney(player)) then local i = table.find(players, getPlayerName(player)) local am = tonumber(amount) --Setting "am" as "amount", but changed into number takePlayerMoney(player, am) --Here's everyting ok moneyToLow = tonumber(moneyT[i]) - am --But here is a problem with "am" IDK why ("Attempt to do arithmetic on a nil value") moneyT[i] = tostring(moneyToLow) outputChatBox ("#09ff00Transfered into bank account #ffffff$" .. amount .. "#09ff00!", player, 255, 255, 255, true) end elseif(not string.match(playersT[k], getPlayerName(player))) then local size = table.size(playersT) local i = size + 1 playersT[i] = getPlayerName(player) moneyT[i] = amount takePlayerMoney(player, tonumber(amount)) outputChatBox ("#09ff00Transfered to bank account #ffffff$" .. amount .. "#09ff00!", player, 255, 255, 255, true) end end end) I will say only one thing - What The *F word here*?! Help!
-
السلام عليكم ، الطلب ك التالي لما احط اي شيء ب ايديت بوكس واضغط زر يروح للقريد ليست اللاسم وكل واحد اسم له رقم معين ، مثلا اول واحد سوا اسم الرقم يكون 1 وثاني واحد يسوي اسم الرقم يكون 2 الآن الاسم اجا بقريد ليست ، لما احدد اي اسم يجيبلي الرقم لهذا الاسم ، ولما اضغط زر واكون محدد اي اسم يجيب الرقم ويوديني مثلا عالم وهمي مشكورين مقدما
-
Estoy realizando un script y para optimizarlo uso tablas para guardar objetos. El problema es que cuando quiero utilizar el destroyElement para eliminar el objeto en cuestión, me tira userdata value en el debug. ¿Por qué podría ser? local x, y, z = getElementPosition( player ) objetos[ player ] = createObject( id, x, y, z, 0, 0, 0 ) local object = objetos[ player ] if object then if isElement( object ) then destroyElement( object ) objetos[ player ] = nil end end