Hallo Freunde habe ein Problem mit meiner Bank. Es zeigt mir nicht die aktuellen Kontoauszüge würde mich freuen wenn mir einer helfen würde.
gTab["cashPointPrint"] = guiCreateTab("Kontoauszug",gTabPanel["cashPoint"])
gImage["cashPointPrintBG"] = guiCreateStaticImage(4,8,325,211,"images/colors/c_white.jpg",false,gTab["cashPointPrint"])
gImage["cashPointPrintBGHead"] = guiCreateStaticImage(0,0,325,19,"images/colors/c_red.jpg",false,gImage["cashPointPrintBG"])
gLabel[8] = guiCreateLabel(125,0,75,17,"Kontoauszug",false,gImage["cashPointPrintBGHead"])
guiLabelSetColor(gLabel[8],255,255,255)
guiLabelSetVerticalAlign(gLabel[8],"top")
guiLabelSetHorizontalAlign(gLabel[8],"left",false)
guiSetFont(gLabel[8],"default-bold-small")
gImage["cashPointPrintBGBottom"] = guiCreateStaticImage(0,192,325,19,"images/colors/c_red.jpg",false,gImage["cashPointPrintBG"])
guiCreateStaticImage(101,170,100,2,"images/colors/c_black.jpg",false,gImage["cashPointPrintBG"])
gLabel[12] = guiCreateLabel(17,177,69,17,"Total",false,gImage["cashPointPrintBG"])
guiLabelSetColor(gLabel[12],200,0,0)
guiLabelSetVerticalAlign(gLabel[12],"top")
guiLabelSetHorizontalAlign(gLabel[12],"left",false)
gLabel[15] = guiCreateLabel(16,30,73,19,"Grund",false,gImage["cashPointPrintBG"])
guiLabelSetColor(gLabel[15],200,200,0)
guiLabelSetVerticalAlign(gLabel[15],"top")
guiLabelSetHorizontalAlign(gLabel[15],"left",false)
gLabel[16] = guiCreateLabel(130,30,73,19,"Betrag",false,gImage["cashPointPrintBG"])
guiLabelSetColor(gLabel[16],200,200,0)
guiLabelSetVerticalAlign(gLabel[16],"top")
guiLabelSetHorizontalAlign(gLabel[16],"left",false)
gLabel[17] = guiCreateLabel(235,30,73,19,"Sonstiges",false,gImage["cashPointPrintBG"])
guiLabelSetColor(gLabel[17],200,200,0)
guiLabelSetVerticalAlign(gLabel[17],"top")
guiLabelSetHorizontalAlign(gLabel[17],"left",false)
gLabel[19] = guiCreateLabel(135,234,54,12,"Blaettern",false,gTab["cashPointPrint"])
guiLabelSetColor(gLabel[19],255,255,255)
guiLabelSetVerticalAlign(gLabel[19],"top")
guiLabelSetHorizontalAlign(gLabel[19],"left",false)
guiSetFont(gLabel[19],"default-bold-small")
gLabel[9] = guiCreateLabel(274,0,48,12,getDateAsOneString(),false,gImage["cashPointPrintBGHead"])
guiLabelSetColor(gLabel[9],255,255,255)
guiLabelSetVerticalAlign(gLabel[9],"top")
guiLabelSetHorizontalAlign(gLabel[9],"left",false)
guiSetFont(gLabel[9],"default-small")
gLabel["cashPointPages"] = guiCreateLabel(236,2,87,15,"Seite 1/1",false,gImage["cashPointPrintBGBottom"])
guiLabelSetColor(gLabel["cashPointPages"],255,255,255)
guiLabelSetVerticalAlign(gLabel["cashPointPages"],"top")
guiLabelSetHorizontalAlign(gLabel["cashPointPages"],"right",false)
--gLabel["cashPointWhy"] = guiCreateLabel(17,50,85,121,"Barauszahlung\n\n\nLas Venturas\nCasino\n\nEinzahlung\nLos Santos",false,gImage["cashPointPrintBG"])
guiLabelSetColor(gLabel["cashPointWhy"],0,0,0)
guiLabelSetVerticalAlign(gLabel["cashPointWhy"],"top")
guiLabelSetHorizontalAlign(gLabel["cashPointWhy"],"left",false)
--gLabel["cashPointAmount"] = guiCreateLabel(114,62,86,118,"-400 $\n\n\n-200 $\n\n\n+ 25 $",false,gImage["cashPointPrintBG"])
guiLabelSetColor(gLabel["cashPointAmount"],0,0,0)
guiLabelSetVerticalAlign(gLabel["cashPointAmount"],"top")
guiLabelSetHorizontalAlign(gLabel["cashPointAmount"],"right",false)
--gLabel["cashPointWhere"] = guiCreateLabel(212,50,107,107,"SF Bahnhof\n\n\nFour Dragons\n\n\nMarket Station",false,gImage["cashPointPrintBG"])
guiLabelSetColor(gLabel["cashPointWhere"],0,0,0)
guiLabelSetVerticalAlign(gLabel["cashPointWhere"],"top")
guiLabelSetHorizontalAlign(gLabel["cashPointWhere"],"right",false)
gLabel["cashPointTotal"] = guiCreateLabel(99,176,101,16,"+ 0 $",false,gImage["cashPointPrintBG"])
guiLabelSetColor(gLabel["cashPointTotal"],0,0,0)
guiLabelSetVerticalAlign(gLabel["cashPointTotal"],"top")
guiLabelSetHorizontalAlign(gLabel["cashPointTotal"],"right",false)
gButton["cashPointPrintPageUp"] = guiCreateButton(198,231,21,21,">",false,gTab["cashPointPrint"])
gButton["cashPointPrintPageDown"] = guiCreateButton(104,231,21,21,"<",false,gTab["cashPointPrint"])
end
refreshStatementLabels ( 0 )
end
addEvent ( "showCashPoint", true )
addEventHandler ( "showCashPoint", getRootElement(), showCashPoint_func )
function refreshStatementLabels ( page )
local c1, c2, c3 = getStatementEntry ( number )
guiSetText ( gLabel["cashPointWhy"], c1 )
guiSetText ( gLabel["cashPointAmount"], c2 )
guiSetText ( gLabel["cashPointWhere"], c3 )
local money = getElementData ( lp, "bankmoney" )
if money > 0 then
money = "+ "..money.." $"
elseif money < 0 then
money = "- "..math.abs ( money ).." $"
else
money = "+- 0 $"
end
guiSetText ( gLabel["cashPointTotal"], money )
end
Alles anzeigen