Tematy otagowane jako: table
1. magic story table contact
Witam nie wiem dlaczego nie pokazuje si? lista log?w i raport?w
LUA
addEventHandler( "onClientRender" , root , function()
if not getElementData ( localPlayer , "player:admin" ) then return end
concat = table . concat ( gameView , "n" )
dxDrawText ( concat , sx *( 10 + 1 )/ 1024 , sy *( 279 + 1 )/ 768 , sx *( 326 + 1 )/ 1024 , sy *( 497 + 1 )/ 768 , tocolor ( 0 , 0 , 0 , 255 ), 1.00 , "default" , "left" , "top" , false , true )
dxDrawText ( concat , sx *( 10 )/ 1024 , sy *( 279 )/ 768 , sx *( 326 )/ 1024 , sy *( 497 )/ 768 , white , 1.00 , "default" , "left" , "top" , false , true )
end )
DB :
https://zapodaj.net/c9fcf1895b78a.png.html
https://zapodaj.net/c9fcf1895b78a.png.html
https://zapodaj.net/c9fcf1895b78a.png.html
2. fatal er*or 102: table over
Cze??,
Ostatnio dosta?em do r?ki gotowego gamemoda (https://github.com/kacper55331/Mini-Mission), lecz w czasie kompilacji mam taki b??d Kod: MINI_cmd.pwn(93) : fatal error 102: table overflow: "literal table"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
I tu nast?puje moje pytanie, jak to naprawi?? Nie jestem jakim? zaawansowanym programistom pawn dlatego prosz? o pomoc.
3. table
function text ( source )
local accName = getAccountName ( getPlayerAccount ( source ) )
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Admin" ) ) then
local n = getPlayerName ( source )
local text = table . concat ( {...}, " " )
outputChatBox ( "Wiadomo?? od Admina|" .. n .. ": " .. text .. "" , getRootElement (), 255 , 0 , 0 )
else
outputChatBox ( "Nie masz dost?pu do tej komendy" , source )
end
end
addCommandHandler ( "ac" , text )
ERRORY:
Kod: [2016-08-24 16] SCRIPT ERROR: tableserver.lua:10: cannot use '...' outside a vararg function near '...'
[2016-08-24 16] ERROR: Loading script failed: tableserver.lua:10: cannot use '...' outside a vararg function near '...'
Je?li kto? pomo?e, stawiam mu browara .
4. table expected
local getSecUsers = dbQuery ( organizations_db , "SELECT * FROM users WHERE organization = ?" , org_name )
local my_number = 0
for _ , row in pairs ( getSecUsers ) do
local my_number = mynumber + 1
end
B??d: bad argument to pairs,table expected, not user data
5. if + search table element
nikt mi wcze?niej nie odpowiedzia? na postawione przeze mnie pytanie, tak si? nie robi :c
jak zbudowa? instrukcj? warunkow? w oparciu o por?wnanie okre?lonej zmiennej, np
do wszystkich element?w z tablicy np:
my_table = { 224 = true , 1 = true }
6. Table
Wiecie jaka jest funkcja aby usun?? wszystko z tablicy ?