Witam mam taki problem ?e jak klikam wymiana i chce wymieni? pkt na premium to mi zabiera 5 ?eton?w i to tak wygl?da jak bym klika? w jeden przycisk 5 razy... pom?g? by kto? to poprawi?? bo walcze z tym juz od 2 dni i nie mog? tego znale??, bardzo bym by? wdzi?czny... pozdrawiam
[lua]elseif mysz(screenW * 0.4008, screenH * 0.6133, screenW * 0.0542, screenH * 0.0352) and okno3 == false and okno4 == true then
elseif mysz(822*px, 585*py, 126*px, 38*py) and gielda == true then
triggerServerEvent("wymien:pp", localPlayer, ile)
if niemozesz == true then return end
local cena = guiGetText(cenapp)
local ilosc = guiGetText(liczbapp)
if not tonumber(ilosc) then return end
if not tonumber(cena) then return end
if cena:len() > 6 then return end
if cena == "Cena" then return end
if ilosc == "Ilosc" then return end
if cena == "" then return end
if ilosc == "" then return end
if tonumber(cena) < 1 then return end
if tonumber(ilosc) < 1 then return end
if string.find(cena, 'E') then return end
if string.find(cena, 'e') then return end
if string.find(cena, 'r') then return end
if tonumber(ilosc) > tonumber(getElementData(localPlayer, "pp")) then exports["smta_base_notifications"]:noti("Nie posiadasz wystarczajacej ilosc DP", "error") return end
triggerServerEvent("wystaw:pp", localPlayer, tonumber(i...
function logintax ( thePlayer )
if isObjectInACLGroup( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("taxi")) then
setPlayerTeam ( player, ta )
giveWeapon ( player, 12, 1000 )
setPedSkin ( player, 281 )
spawnPlayer ( player, -2660.984453125, 609.30276123047, 14.4575 )
setPlayerNametagColor ( player, 255, 255, 0 )
end
addCommandHandler ( "taxi", logintax )
function wyloguj ( player )
setPlayerTeam (player, cywile)
setPlayerNametagColor (player, 255, 255, 255 )
end
addCommandHandler ("wylogujtaxi", wyloguj)[/lua]
Chodzi o to ?e gdy mam linie z if isObjectInACLGroup nie dzia?a to ?e mog? uzywa? tej komendy osoby tylko zapisane w acl (KOD w ACL)
[code]<group name="taxi">
<acl name="Default"></acl>
<object name="user.czak"></object>
</group>[/code]
To wy?wietla si? w konsoli MTA przy w??czaniu skryptu
[code]SCRIPT ERROR: pogoteampogo.lua:25: 'end' expected (to close 'function' at line 8) near '<eof>'
[11:57:23] ERROR: Loading script failed: pogoteampogo.lua:25: 'end' expected (to close 'function' ...
Siemanko chcia?em zapyta? o co tutaj chodzi bo zrobi?em wszystko dobrze w bramie a gdy chce j? w??czy? wyskakuje na konsoli:
[2015-02-15 17] ERROR: Couldn't find meta.xml file for resource 'brama'
[2015-02-15 17] Loading of resource 'brama' failed
A tutaj od bramy