Jump to content

SkatCh

Members
  • Posts

    365
  • Joined

  • Last visited

Everything posted by SkatCh

  1. lol i already fixed it . topic can be closed
  2. i add it to local variable : local aWindow, aTab,aButton, aEdit,aColumn, aLabel,aGrid1 = {}, {}, {}, {}, {}, {} , {}, {}, {} ,{} and now i got this warning in the same lines but : [expected gui-element at argument 1 , got table ]
  3. i create it : [lua]aGrid1 = guiCreateGridList(3,31,177,456,false,aTab1) aColumn = guiGridListAddColumn(aGrid1,"Players",0.
  4. hello community please can any one help me to fix this : function addPlayersToGridlist() if (not aColumn or isAdminBrowsing) then return end guiGridListClear(aGrid1) -- line 502 for index, players in pairs(getElementsByType("player")) do local localTeam = getPlayerTeam(players) if (localTeam) then mainR, mainG, mainB = getTeamColor(localTeam) else mainR, mainG, mainB = 255, 255, 255 end local row = guiGridListAddRow(aGrid1) -- line 510 local name = getPlayerName(players) guiGridListSetItemText(aGrid1, row, aColumn, name, false, false) -- line 512 guiGridListSetItemColor(aGrid1, row, aColumn, mainR, mainG, mainB) -- line 513 getPlayerRow[players] = row end end warnings :
  5. here you go : "ByAmazze" name="teams" version="1.0" type="script" /> "help.xml" type="client" />
  6. it's easy to fix it just check your Teams resource then do the same thing or just post your meta here and i will fix it for you .
  7. i think it should be like this : "ByAmazze" name="freeroam-cmds" version="1.0" type="script" /> "help.xml" type="client" />
  8. men try to take SS and post it here .
  9. guys please i need some help how can i fix this i create a medkits system but i have a problem when i try to save player medkits . function getPlayerMedKits(player) local medKits = tonumber(getAccountData(player, "medKits")) or 0 return medKits end function setPlayerMedKits(player, amount) setAccountData(player, "medKits", tostring(amount)) getPlayerAccount(player, "medKits", tostring(amount)) triggerClientEvent(player, "onMedKitLoad", player, amount) return true end warnings : -Bad argument @ 'getAccountData' [Expected account at argument 1, got player ] -Bad argument @ 'setAccountData' [Expected account at argument 1, got player ]
  10. check the file name maybe it's not the same name in meta.xml .
  11. Detects presence of trainer. Capital letters in the message are for tagging particular trainers . check Mta sa anti cheat guied https://wiki.multitheftauto.com/wiki/Anti-cheat_guide .
  12. SkatCh

    turf color

    but bro you said that it will wok with any group system i already checked ur forum can you gave me you Skype or can i Pm u .
  13. SkatCh

    turf color

    i think you don't undrestand my question it's just a part from the script i already create the table using sqlite : dbExec(con, "CREATE TABLE IF NOT EXISTS gangSysGangs (name TEXT, count TEXT, leader TEXT, lastactive TEXT, message TEXT,turfcolor TINYTEXT, chatcolor TINYTEXT, invitesUsed INTEGER)") all what i need is i want to create an export function to call it from turf script to get the group turf color did you undrestand what i mean .
  14. SkatCh

    turf color

    guys please i want to create an export fuction (getGroupTurfColor) to call it when a gang hit a turf area : a part of the script : function command_turfcolor(player, _, r, g, b) local gang = getPlayerGang(player) if (not gang) then return end if (canPlayerDoActionInGroup(player, "changeTurfColor")) then if (r and g and b) then r = tonumber(r) g = tonumber(g) b = tonumber(b) if (r and g and b) then if (r >= 0 and r <= 255 and g >= 0 and g <= 255 and b >= 0 and b <= 255) then local colorTable = {math.floor(r), math.floor(g), math.floor(b)} dbExec(con, "UPDATE gangSysGangs SET turfColor=? WHERE name=?", toJSON(colorTable), gang) gangs[gang][5] = colorTable exports.COG_text:output("Turfcolor set to "..colorTable[1]..", "..colorTable[2]..", "..colorTable[3], player, colorTable[1], colorTable[2], colorTable[3]) else i tried this but it dosen't work : function getGroupTurfColor(gang) if (not groupTable) then return 255, 255, 255 end local color = fromJSON(gangs[gang][5]) return colorTable[1], colorTable[2], colorTable[3] end function="getGroupTurfColor" type="server"/>
  15. SkatCh

    About MySQL

    hi there please i have a small question which is how can i (convert or change) MySQL to Sqlite i want to use a local one .
  16. SkatCh

    about markers

    i know that i need to use dxDrawLine3D but how to create it please help .
  17. SkatCh

    about markers

    hi guys please i have a question how can i change the marker type . i know all markers type from wiki but i mean custom marker . thank you .
  18. as far as i know you need to change INSERT to UPDATE .
  19. i think your music link must be format pls . addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() playSound(""[url=http://www]http://www[/url].181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls"") end end ) meta or you can use music from ur computer so you need to add the music file inside ur resource folder then add this in ur meta file. "musicName.mp3" />
  20. SkatCh

    HUD

    post your code here .
  21. you can use this function guiBringToFront ( <<<<< Gui name >>>> ) Client function
  22. SkatCh

    about gui

    :fp: didn't work .
  23. SkatCh

    about gui

    didn't work just i want when it's a guestAccount account you can't open Gui's that's all .
  24. SkatCh

    about gui

    how can i fix it please .
×
×
  • Create New...