-
Posts
365 -
Joined
-
Last visited
Posts posted by SkatCh
-
-
Can't you see it? aGrid1 is nil... it's not defined, the gridlist wasn't created. Show us the code where you created it, it's possibly local variable.
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 ]
-
i create it :
[lua]aGrid1 = guiCreateGridList(3,31,177,456,false,aTab1)
aColumn = guiGridListAddColumn(aGrid1,"Players",0.
-
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 :
-
here you go :
"ByAmazze" name="teams" version="1.0" type="script" /> "help.xml" type="client" />
-
ok i did that thanks i started fine with no errors on MTA Server good but now when i go on my server it say: ERROR: Couldn't parse config cteamloader.lua in resource teams
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 .
-
i think it should be like this :
"ByAmazze" name="freeroam-cmds" version="1.0" type="script" /> "help.xml" type="client" />
-
men try to take SS and post it here .
-
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 ]
-
check the file name maybe it's not the same name in meta.xml .
-
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 .
-
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 .
-
help please .
-
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 .
-
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"/>
-
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 .
-
i know that i need to use dxDrawLine3D but how to create it please help .
-
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 .
-
as far as i know you need to change INSERT to UPDATE .
-
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" />
-
-
you can use this function
guiBringToFront ( <<<<< Gui name >>>> )
Client function
-
-
-
getAccountData problem
in Scripting
Posted
lol i already fixed it . topic can be closed