Hi ! Can you help me with this kind of error in my PK Command?
My Script for this Command is
int atcommand_pkmode(constint fd,struct map_session_data *sd,constchar*command,constchar*message ){
nullpo_retr(-1, sd);if(map[sd->bl.m].flag.pvp ||map[sd->bl.m].flag.gvg ||map[sd->bl.m].flag.gvg_castle ||map[sd->bl.m].flag.gvg_dungeon ){
clif_displaymessage(fd,"You can only change your PK state on non-PVP maps.");return-1;}elseif(!sd->state.pk_mode){
sd->state.pk_mode =1;
clif_displaymessage(sd->fd,"You are now no longer in PK mode.");}else{
sd->state.pk_mode =0;
clif_displaymessage(sd->fd,"Returned to normal state.");}return0;}
Question
Vale
Hi ! Can you help me with this kind of error in my PK Command?
My Script for this Command is
use codebox
Link to comment
Share on other sites
6 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.