is this correct ?
int pc_insert_card(struct map_session_data* sd, int idx_card, int idx_equip, int csc)
17 November 2014 - 07:32 PM
is this correct ?
int pc_insert_card(struct map_session_data* sd, int idx_card, int idx_equip, int csc)
25 September 2014 - 04:44 AM
I think your request require a source mod.
try this
pc.c
inside the pc_insert_card() function
int csc;//add this declaration
find// remember the card id to insert nameid = sd->status.inventory[idx_card].nameid;
add after
for(i=0;i<sd->inventory_data[idx_equip]->slot;i++){ if(nameid == sd->status.inventory[idx_equip].card[i]) csc++; } if(csc>=2) return 0
i got error
Error 1 error C2065: 'csc' : undeclared identifier c:usersadmindesktoprathenasrcmappc.c 3737 1 map-server_sql
19 November 2013 - 11:45 AM
+10 good work and thank u