0 Members and 4 Guests are viewing this topic.
if (thisvar == 1)if (thisvar)if (!thisvar)
Is there an official scripting IRC help chat?
Ahaaaaa.Copy is what I'm looking for. Thanks for the help. Is there a full API for this scripting core? Aka a complete list of scripting functions so I don't have to keep asking?
function inttostr(i: Int64): string;function inttostr(i: Integer): string;function strtoint(s: string): Longint;function strtointdef(s: string; def: Longint): Longint;function copy(s: string; ifrom, icount: Longint): stringfunction pos(substr, s: string): Longint;procedure delete(var s: string; ifrom, icount: Longint);procedure insert(s: string; var s2: string; ipos: Longint);function getarraylength: integer;Function StrGet(var S : String; I : Integer) : Char;procedure StrSet(c : Char; I : Integer; var s : String);Function WStrGet(var S : WideString; I : Integer) : WideChar;procedure WStrSet(c : WideChar; I : Integer; var s : WideString);Function StrGet2(S : String; I : Integer) : Char;Function AnsiUppercase(s : string) : string;Function AnsiLowercase(s : string) : string;Function Uppercase(s : string) : string;Function Lowercase(s : string) : string;Function Trim(s : string) : string;function Length(s : string) : Integer;procedure SetLength;function Low: Int64;function High: Int64;procedure Dec;procedure Inc;Function Sin(e : Extended) : Extended;Function Cos(e : Extended) : Extended;Function Sqrt(e : Extended) : Extended;Function Round(e : Extended) : Longint;Function Trunc(e : Extended) : Longint;Function Int(e : Extended) : Extended;Function Pi : Extended;Function Abs(e : Extended) : Extended;function StrToFloat(s: string): Extended;Function FloatToStr(e : Extended) : String;Function Padl(s : string;I : longInt) : string;Function Padr(s : string;I : longInt) : string;Function Padz(s : string;I : longInt) : string;Function Replicate(c : char;I : longInt) : string;Function StringOfChar(c : char;I : longInt) : string;function Unassigned: Variant;function VarIsEmpty(const V: Variant): Boolean;function Null: Variant;function VarIsNull(const V: Variant): Boolean;function VarType(const V: Variant): TVarType;procedure RaiseLastException;procedure RaiseException(Ex: TIFException; Param: string);function ExceptionType: TIFException;function ExceptionParam: string;function ExceptionProc: Cardinal;function ExceptionPos: Cardinal;function ExceptionToString(er: TIFException; Param: string): string;function StrToInt64(s: string): int64;function Int64ToStr(i: Int64): string;function SizeOf: Longint;function IDispatchInvoke(Self: IDispatch; PropertySet: Boolean; const Name: String; Par: array of variant): variant;function GetTickCount():cardinal
What is the equivalent of the return statement in Pascal?
Also, is there any function to check if a player is connected, by ID?
Quote from: TAMAman on May 18, 2008, 01:29:11 pmWhat is the equivalent of the return statement in Pascal?Unless I'm mistaken, in order to set the return value of a function, simply assign a value to result. Then , optionally, exit.Quote from: TAMAman on May 18, 2008, 01:29:11 pmAlso, is there any function to check if a player is connected, by ID?GetPlayerStat(ID, 'active')