SyncMaster Posted September 16, 2018 Group: Members Topic Count: 53 Topics Per Day: 0.01 Content Count: 123 Reputation: 37 Joined: 07/15/13 Last Seen: March 12 Share Posted September 16, 2018 (edited) When Rathena was a C emulator I had this command to change char variables. But now I have some problems to fix it in the C+. Old .c and now .cpp Quote if(sd){ pc_setglobalreg(sd, add_str("p1"), x); pc_setglobalreg(sd, add_str("p2"), y); dir = (sd->bl.x == x && sd->bl.y == y) ? 6 : map_calc_dir(&sd->bl,x,y); pc_setglobalreg(sd, add_str("dirJogador"), dir); return true; } break; Compile Error http://prntscr.com/kuwxv0 Edited September 18, 2018 by SyncMaster 1 Quote Link to comment Share on other sites More sharing options...
0 Cydh Posted September 26, 2018 Group: Developer Topic Count: 153 Topics Per Day: 0.04 Content Count: 2285 Reputation: 745 Joined: 06/16/12 Last Seen: June 30, 2023 Share Posted September 26, 2018 (edited) those x y dir clearly not defined. the problem not the c or c++, but where you add the codes? Edited September 26, 2018 by Cydh Quote Link to comment Share on other sites More sharing options...
0 SyncMaster Posted September 26, 2018 Group: Members Topic Count: 53 Topics Per Day: 0.01 Content Count: 123 Reputation: 37 Joined: 07/15/13 Last Seen: March 12 Author Share Posted September 26, 2018 11 hours ago, Cydh said: those x y dir clearly not defined. the problem not the c or c++, but where you add the codes? skill.c when I define them, they change to another error. On free time I'll change and print it here Quote Link to comment Share on other sites More sharing options...
0 SyncMaster Posted September 29, 2018 Group: Members Topic Count: 53 Topics Per Day: 0.01 Content Count: 123 Reputation: 37 Joined: 07/15/13 Last Seen: March 12 Author Share Posted September 29, 2018 Now i'm ashamed, the error was due to the skill placed in the wrong area for that type of skill..... solved. Quote Link to comment Share on other sites More sharing options...
Question
SyncMaster
When Rathena was a C emulator I had this command to change char variables. But now I have some problems to fix it in the C+.
Old .c and now .cpp
Compile Error
http://prntscr.com/kuwxv0
Link to comment
Share on other sites
3 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.