hey guys . nuther error here.
alot of script i run get this error.
Can any1 help?Code:Line 408: [Error] (16932:6): Unknown identifier 'CountItemsDTM' in script C:\Documents and Settings\Owner\Desktop\Al-Karid Arson ver1.0 SMART.scar
thanks
hey guys . nuther error here.
alot of script i run get this error.
Can any1 help?Code:Line 408: [Error] (16932:6): Unknown identifier 'CountItemsDTM' in script C:\Documents and Settings\Owner\Desktop\Al-Karid Arson ver1.0 SMART.scar
thanks
The SRL team brings all the mods to the yard,
And their like, "We kno u bot hard",
"Damn right, We DO bot hard",
"But you cant catch us, cos we use S.M.A.R.T!"
CountItemsDTM isn't a function in SRL anymore. The script you're using is most likely outdated, so I'd suggest finding a new one or using a different function to count items (CountItemsIn, for example).
:-)
thanks heaps. helped me again. will rep you when i can
The SRL team brings all the mods to the yard,
And their like, "We kno u bot hard",
"Damn right, We DO bot hard",
"But you cant catch us, cos we use S.M.A.R.T!"
um there's also just CountItems
Please, I need money, and you don't lose anything, except get money! Join BUX.TO with http://bux.to/?r=twistedvip50
You could just add CountItemsDTM into that script...
SCAR Code:function ItemCoordsDtm(area: string; dtm: Integer): TPointArray;
var
startx, starty, rowsize, colsize, colnumber, rownumber, cn, rn, col, row: Integer;
x1, y1 : Integer;
itemx, itemy: Integer;
i: Integer;
begin
if (CheckArea(area)) then
begin
AreaInfo(area, startx, starty, rowsize, colsize, colnumber, rownumber);
cn := colnumber - 1;
rn := rownumber - 1;
for row := 0 to rn do
for col := 0 to cn do
begin
x1 := startx + col * colsize;
y1 := starty + row * rowsize;
if (FindDTM(dtm, itemx, itemy, x1, y1, x1 + colsize, y1 + rowsize)) then
begin
i := GetArrayLength(Result);
SetArrayLength(Result, i + 1);
Result[i]:= Point(x1, y1);
end;
end;
end;
end;
function CountItemsDtm(area: string; dtm: Integer): Integer;
var
coords : TPointArray;
begin
Coords := ItemCoordsDtm(area, dtm);
Result := GetArrayLength(coords);
end;
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
There are currently 1 users browsing this thread. (0 members and 1 guests)