Недавнее содержимое от Pu$$y

  1. P

    Вопросы по Lua скриптингу

    I tried this but my script is not working. I get crash: What am I doing wrong?
  2. P

    Вопросы по Lua скриптингу

    How to make the script wait a certain time before executing the next line?
  3. P

    Вопросы по Lua скриптингу

    shit my bad, I got it mixed with other scripting languages. I'll let u know if this works.
  4. P

    Вопросы по Lua скриптингу

    Any help lads?
  5. P

    Вопросы по Lua скриптингу

    Hello there everyone, I have been trying to make a script that autotypes a reaction for me. For example, The server will show the following message: First one to type DxG56(this one is random) gets money. So, I want the script to find "DxG56" and send it. I tried this but it didn't work: It's...
  6. P

    Вопросы по Lua скриптингу

    Can you make string.find absolute? For example, I want it to find "Meth" ONLY, If I use find.string it finds "Methmanol" too for example, any word that has "Meth" will be found, how to disable that?
  7. P

    Вопросы по Lua скриптингу

    function main() if not isSampLoaded() and isSampAvailable() then return end while not isSampAvailable() do wait(0) end sampAddChatMessage("AutoDrugs (/adrugs)", -1) sampRegisterChatCommand("adrugs", activate) wait(-1) end function activate() Activate = not Activate...
  8. P

    Вопросы по Lua скриптингу

    How to know the skin of someone?
  9. P

    Вопросы по Lua скриптингу

    function q.onServerMessage(color, str) if str:find("You have cooked 10 grams of crack.") then wait(100) sampSendChat("/usedrug crack 5") end end I get this error when I use it DrugWork: C:\GTA San Andreas\moonloader\DrugWork.lua:111: attempt to yield across C-call boundary stack traceback...
  10. P

    Вопросы по Lua скриптингу

    I want to read the 2 next lines from a file when I find a specific string. Here is my code: for line in file:lines() do if string.find(line, string) then var1 = file:read("*line") var2= ?????????????? end end How to get the var2...
  11. P

    Вопросы по Lua скриптингу

    I want to read the 2 next lines from a file when I find a specific string. Here is my code: for line in file:lines() do if string.find(line, string) then var1 = file:read("*line") var2= ?????????????? end end How to get the var2...
  12. P

    Вопросы по Lua скриптингу

    sampRegisterChatCommand("locate", function(find) local filefind = io.open("moonloader/locations.txt", "r") for line in filefind:lines() do if string.find(line, find) then coords = filefind:read("*line") local posx, posy, posz =...
  13. P

    Вопросы по Lua скриптингу

    I have a string that has some coordinates. For example S = "15 , 12, 20" I want to do this S = "15 , 12, 20" x, y, z = tonumber(S) Will it work?
  14. P

    Вопросы по Lua скриптингу

    sampRegisterChatCommand("save", function(location) if location ~= "" then x,y,z = getCharCoordinates(PLAYER_PED) local slocation = io.open("moonloader/locations.txt", "a") slocation:write(loc.."\n" .. x .." , " .. y .. " , " .. z .. "\n")...
  15. P

    Вопросы по Lua скриптингу

    sampRegisterChatCommand("locate", function(findlocation) local coords = nil local file = io.open("moonloader/savedlocs.txt", "r") for line in file:lines() do if string.find(line, findlocation) then coords = file:read("*line")...