Elysium Posted May 23, 2017 Group: Members Topic Count: 41 Topics Per Day: 0.01 Content Count: 164 Reputation: 17 Joined: 03/15/12 Last Seen: October 24, 2020 Share Posted May 23, 2017 (edited) Hello, rAthena i'm looking for support regarding of SRC of goddameit i was trying to apply on my rA however i got error while compiling. /*=========================================== * getmobxy * by goddameit *-------------------------------------------*/ BUILDIN_FUNC(getmobxy) { int num, id; char *name; struct mob_data *md = NULL; TBL_PC *sd = st->rid?map_id2sd(st->rid):NULL; id = script_getnum(st,2); if(!(md = (struct mob_data *)map_id2bl(id)) || md->bl.type != BL_MOB || !data_isreference(script_getdata(st,3))) { script_pushint(st,0); return 0; } num=st->stack->stack_data[st->start+3].u.num; name=(char *)(str_buf+str_data[num&0x00ffffff].str); setd_sub(st,sd,name,0,(void *)(int)md->bl.x,script_getref(st,3)); setd_sub(st,sd,name,1,(void *)(int)md->bl.y,script_getref(st,3)); script_pushint(st,1); return 0; } // getmobxy [goddameit] BUILDIN_DEF(getmobxy,"i*"), After compiling: Quote custom/script.inc(26): warning C4244: '=': conversion from 'int64' to 'int', possible loss of data Edited May 23, 2017 by Elysium Quote Link to comment Share on other sites More sharing options...
0 sketchyphoenix Posted May 24, 2017 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 112 Reputation: 89 Joined: 11/12/11 Last Seen: April 5 Share Posted May 24, 2017 Quote custom/script.inc(26): warning C4244: '=': conversion from 'int64' to 'int', possible loss of data anywhere you see something declared as int, declare as int64. Quote Link to comment Share on other sites More sharing options...
Question
Elysium
Hello, rAthena i'm looking for support regarding of SRC of goddameit i was trying to apply on my rA however i got error while compiling.
After compiling:
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.