Jump to content
  • 0

Single Strip Error


Erba

Question


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

 
I use this src modification for Single strip:
if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ROGUE && rand()%100 < 10
             &&
            ( skill_id == RG_STRIPWEAPON && tsc->data[SC_CP_WEAPON] ||
            skill_id == RG_STRIPSHIELD && tsc->data[SC_CP_SHIELD] ||
            skill_id == RG_STRIPARMOR && tsc->data[SC_CP_ARMOR] ||
            skill_id == RG_STRIPHELM && tsc->data[SC_CP_HELM] ) ) {
            int item_id = 7139; // Glistening Coat
            int ii;
            ARR_FIND( 0, MAX_INVENTORY, ii, sd->status.inventory[ii].nameid == item_id );
            if ( ii < MAX_INVENTORY ) {
                pc_delitem( sd, ii, 1, 0, 0, LOG_TYPE_CONSUME);
                switch ( skill_id ) {
                    case RG_STRIPWEAPON:
                        status_change_end( bl, SC_CP_WEAPON, INVALID_TIMER );
                        sc_start(NULL, bl, SC_STRIPWEAPON, 100, skill_lv, d );
                        break;
                    case RG_STRIPSHIELD:
                        status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER );
                        sc_start(NULL, bl, SC_STRIPSHIELD, 100, skill_lv, d );
                        break;
                    case RG_STRIPARMOR:
                        status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER );
                        sc_start(NULL, bl, SC_STRIPARMOR, 100, skill_lv, d );
                        break;
                    case RG_STRIPHELM:
                        status_change_end( bl, SC_CP_HELM, INVALID_TIMER );
                        sc_start(NULL, bl, SC_STRIPHELM, 100, skill_lv, d );
                        break;
                }
                clif_skill_nodamage( src, bl, skill_id, skill_lv, i );
                break;
            }
        }

 

and then after i recompilation this error pop out.. 
 
..\src\map\skill.c(6120): error C2065: 'skill_id' : undeclared identifier
..\src\map\skill.c(6121): error C2065: 'skill_id' : undeclared identifier
..\src\map\skill.c(6122): error C2065: 'skill_id' : undeclared identifier
..\src\map\skill.c(6123): error C2065: 'skill_id' : undeclared identifier
..\src\map\skill.c(6129): error C2065: 'skill_id' : undeclared identifier
..\src\map\skill.c(6132): warning C4002: too many actual parameters for macro 'sc_start'
..\src\map\skill.c(6132): error C2440: 'function' : cannot convert from 'block_list *' to 'sc_type'
..\src\map\skill.c(6132): warning C4024: 'status_change_start' : different types for formal and actual parameter 2
..\src\map\skill.c(6132): error C2065: 'skill_lv' : undeclared identifier
..\src\map\skill.c(6136): warning C4002: too many actual parameters for macro 'sc_start'
..\src\map\skill.c(6136): error C2440: 'function' : cannot convert from 'block_list *' to 'sc_type'
..\src\map\skill.c(6136): warning C4024: 'status_change_start' : different types for formal and actual parameter 2
..\src\map\skill.c(6136): error C2065: 'skill_lv' : undeclared identifier
..\src\map\skill.c(6140): warning C4002: too many actual parameters for macro 'sc_start'
..\src\map\skill.c(6140): error C2440: 'function' : cannot convert from 'block_list *' to 'sc_type'
..\src\map\skill.c(6140): warning C4024: 'status_change_start' : different types for formal and actual parameter 2
..\src\map\skill.c(6140): error C2065: 'skill_lv' : undeclared identifier
..\src\map\skill.c(6144): warning C4002: too many actual parameters for macro 'sc_start'
..\src\map\skill.c(6144): error C2440: 'function' : cannot convert from 'block_list *' to 'sc_type'
..\src\map\skill.c(6144): warning C4024: 'status_change_start' : different types for formal and actual parameter 2
..\src\map\skill.c(6144): error C2065: 'skill_lv' : undeclared identifier
..\src\map\skill.c(6147): error C2065: 'skill_id' : undeclared identifier
..\src\map\skill.c(6147): error C2065: 'skill_lv' : undeclared identifier

 

can someone help me to fix this? thank you



PROBLEM SOLVE.. KINDLY CLOSE THIS TOPIC THANK YOU!!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  5
  • Reputation:   2
  • Joined:  05/17/18
  • Last Seen:  

how you fix that problem?

Link to comment
Share on other sites

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.

×
×
  • Create New...