local marker = createMarker(1067,1359,10, "cylinder", 10, 255, 0, 0, 0) st = createObject ( 980, 1067.7998046875, 1359.400390625, 12.5, 0, 0, 180 ) function stO () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(el)),aclGetGroup("Policja"))then moveObject ( st, 5000, 1056.3000488281, 1359.5999755859, 12.5 ) else outputChatBox ("Nie jestes w Policji", thePlayer, 219, 78, 1, true ) end end addEventHandler("onPlayerMarkerHit",getRootElement(),stO) function stC () moveObject ( st, 4000, 1067.7998046875, 1359.400390625, 12.5 ) end addEventHandler("onPlayerMarkerLeave",getRootElement(),stC)
[2015-07-19 20:30:46] WARNING: [gameplay]/brama/brama.lua:5: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] [2015-07-19 20:30:46] WARNING: [gameplay]/brama/brama.lua:5: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] [2015-07-19 20:30:46] ERROR: [gameplay]/brama/brama.lua:5: attempt to concatenate a boolean value