|
@@ -11712,7 +11712,7 @@ BUILDIN_FUNC(getmapusers)
|
|
*------------------------------------------*/
|
|
*------------------------------------------*/
|
|
static int buildin_getareausers_sub(struct block_list *bl,va_list ap)
|
|
static int buildin_getareausers_sub(struct block_list *bl,va_list ap)
|
|
{
|
|
{
|
|
- int *users=va_arg(ap,int *);
|
|
|
|
|
|
+ int *users = va_arg(ap, int *);
|
|
(*users)++;
|
|
(*users)++;
|
|
return SCRIPT_CMD_SUCCESS;
|
|
return SCRIPT_CMD_SUCCESS;
|
|
}
|
|
}
|
|
@@ -11720,7 +11720,8 @@ static int buildin_getareausers_sub(struct block_list *bl,va_list ap)
|
|
BUILDIN_FUNC(getareausers)
|
|
BUILDIN_FUNC(getareausers)
|
|
{
|
|
{
|
|
const char *str;
|
|
const char *str;
|
|
- int16 m,x0,y0,x1,y1,users=0; //doubt we can have more then 32k users on
|
|
|
|
|
|
+ int16 m,x0,y0,x1,y1;
|
|
|
|
+ int users = 0;
|
|
str=script_getstr(st,2);
|
|
str=script_getstr(st,2);
|
|
x0=script_getnum(st,3);
|
|
x0=script_getnum(st,3);
|
|
y0=script_getnum(st,4);
|
|
y0=script_getnum(st,4);
|