Jump to content

Question

Posted

i tried to add te @AFK command  and already made  like the guide says but when i compile  the server an error appears

Error    1    error C2039: 'logout' : is not a member of 's_state'    D:\rathena\src\map\atcommand.c    9079    1    map-server_sql


 i made each step by step  but still have this error

 

3 answers to this question

Recommended Posts

Posted

testing this...

-	script	AFK_1	-1,{
	
	
OnInit:
bindatcmd("afk", strnpcinfo(3) +"::OnAFK");
end;

OnAFK:
if (@AFK) {
set @AFK, 0;
changelook 4,headupper;
dispbottom "AFK Modus is OFF.";
end;
} else {
set @AFK, 1;
headupper=getlook(4);
changelook 4,471;
dispbottom "AFK Modus is ON.";
end;
}
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...