SRL Archive - OSR Help

Integer Vs LongInt


YoHoJo

2011-12-15 05:08:58

Length(s):LongInt;

Stats_IncVariable(VarName:String; Value:Integer);

Will
Stats_IncVariable('Coal Ore (Mined)', Length(HowMany) );
Work?

(HowMany:TPointArray);

Gu3st...

2011-12-15 05:21:51

Should work just fine. You can do var I : Integer; I := Length(HowMany); right? ;)

Just remember to reset HowMany after each commit :D

YoHoJo

2011-12-15 05:26:12

From: Zyt3x
Should work just fine. You can do var I : Integer; I := Length(HowMany); right? ;)

Just remember to reset HowMany after each commit :D


HokiePokie.
I find HowMany like this so no need for reset but thanks
FindDTMs(OreMid, HowMany, MIX1, MIY1, MIX2, MIY2); 
Problem earlier was DTM not being found, fixed that now, let's see if it commits!

NCDS

2011-12-15 14:55:35


Type Bytes Bits Range

short int 2 16 -32,768 -> +32,767 (16kb)
unsigned short int 2 16 0 -> +65,535 (32Kb)
unsigned int 4 16 0 -> +4,294,967,295 ( 4Gb)
int 4 32 -2,147,483,648 -> +2,147,483,647 ( 2Gb)
long int 4 32 -2,147,483,648 -> +2,147,483,647 ( 2Gb)
signed char 1 8 -128 -> +127
unsigned char 1 8 0 -> +255
float 4 32
double 8 64
long double 12 96

Source. :)

Dgby714

2011-12-15 15:11:31

Internally…

type
Integer = LongInt;