DevilingKing Posted March 24 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 28 Reputation: 0 Joined: 12/14/16 Last Seen: Friday at 09:08 AM Share Posted March 24 (edited) ../custom/atcommand.inc:37:34: error: request for member ‘Alias’ in ‘atcommand_alias_db’, which is of pointer type ‘DBMap*’ (maybe you meant to use ‘->’ ?) parent_cmd = atcommand_alias_db.Alias(command + 1); ^ make[1]: *** [obj/atcommand.o] Error 1 +ACMD_FUNC(equipoff) { + int value = 0; + char type[CHAT_SIZE_MAX]; + + nullpo_retr(-1, sd); + + if (map_getmapflag(sd->bl.m, MF_NOEQUIP_OFF) || map_getmapflag(sd->bl.m, MF_EQUIP_HIDE)) { + clif_displaymessage(fd, msg_txt(sd, 1525)); + return -1; + } + + parent_cmd = atcommand_alias_db.checkAlias(command + 1); + + if (strcmp(parent_cmd, "equipoff") == 0) { + if ((sscanf(message, "%s", &type)) < 1) { + clif_displaymessage(fd, msg_txt(sd, 1523)); // Syntax: @equipoff <type> + clif_displaymessage(fd, msg_txt(sd, 1524)); // Type: all - all players | others - other players + return -1; + } + Edited March 24 by DevilingKing Quote Link to comment Share on other sites More sharing options...
Question
DevilingKing
../custom/atcommand.inc:37:34: error: request for member ‘Alias’ in ‘atcommand_alias_db’, which is of pointer type ‘DBMap*’ (maybe you meant to use ‘->’ ?)
parent_cmd = atcommand_alias_db.Alias(command + 1);
^
make[1]: *** [obj/atcommand.o] Error 1
+ACMD_FUNC(equipoff) {
+ int value = 0;
+ char type[CHAT_SIZE_MAX];
+
+ nullpo_retr(-1, sd);
+
+ if (map_getmapflag(sd->bl.m, MF_NOEQUIP_OFF) || map_getmapflag(sd->bl.m, MF_EQUIP_HIDE)) {
+ clif_displaymessage(fd, msg_txt(sd, 1525));
+ return -1;
+ }
+
+ parent_cmd = atcommand_alias_db.checkAlias(command + 1);
+
+ if (strcmp(parent_cmd, "equipoff") == 0) {
+ if ((sscanf(message, "%s", &type)) < 1) {
+ clif_displaymessage(fd, msg_txt(sd, 1523)); // Syntax: @equipoff <type>
+ clif_displaymessage(fd, msg_txt(sd, 1524)); // Type: all - all players | others - other players
+ return -1;
+ }
+
Link to comment
Share on other sites
0 answers 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.