ll.SetParcelForSale() returns boolean instead of a number constant
tracked
SuzannaLinn Resident
In LSL:
default { state_entry() {
llOwnerSay((string)llSetParcelForSale(0, [])); // -- > 2
// PARCEL_SALE_ERROR_NO_PERMISSIONS = 2
}}
In SLua:
print(ll.SetParcelForSale(0, {})) -- > true
Its constants:
PARCEL_SALE_PRICE = 1
PARCEL_SALE_AGENT = 2
PARCEL_SALE_OBJECTS = 3
PARCEL_SALE_OK = 0
PARCEL_SALE_ERROR_NO_PARCEL = 1
PARCEL_SALE_ERROR_NO_PERMISSIONS = 2
PARCEL_SALE_ERROR_IN_ESCROW = 3
PARCEL_SALE_ERROR_INVALID_PRICE = 4
PARCEL_SALE_ERROR_BAD_PARAMS = 5
ll.SetParcelForSale() has been added recently.
The function and its constants are:
- not listed in the "Insert..." button in the editor (but they are in LSL)
- not in lsl_definitions.yaml
- not in SL wiki
Log In
M
Mercury Linden
marked this post as
tracked
Thanks! we will look into getting this fixed.