Phantasmal Site > Phantasmal API > API Listing > add_mobile_number
API Function: add_mobile_number
- Summary:
- register a mobile with MobileD
- Defined In LPC Object:
- /usr/common/sys/mobiled.c
- Prototype:
- int add_mobile_number(object mobile, int num)
- Can Be Called By:
- System, Common, Game
- Description:
-
Registers a mobile with MobileD. If num is greater than zero,
it assigns that as the number, or causes an error. If num is
-1, a number is automatically assigned.
- Return Value:
-
The new mobile number, or -1 if the number can't be assigned.
- Errors:
- Invalid parameters can cause various errors.
- See Also:
- remove_mobile
|