Legato Posted December 24, 2011 Posted December 24, 2011 Hiya, everyone. Can someone tell me why I'm getting all these warnings? Been trying to search for answers, but I can't find any accurate one. Thanks. mob_spawn (md); // Crea el MOB clif_misceffect2(&md->bl, 92); // Meteor Storm md->status.max_hp = power; md->status.hp = power; clif_announce(&md->bl, output, (int)strlen(output) + 1, 0x0066CC, 1); sprintf (mensaje, "[%s] Killed by [%s]",(mvp_sd?mvp_sd->status.name:"???"),md->db->jname); clif_GMmessage(&sd->bl, mensaje, strlen(mensaje) + 1, 1); warning C4013: 'clif_misceffect2' undefined; assuming extern returning int warning C4013: 'clif_announce' undefined; assuming extern returning int warning C4013: 'clif_GMmessage' undefined; assuming extern returning int warning C4013: 'map_readregions' undefined; assuming extern returning int map_readregions(); /*====================================== * [Zephyrus] Regional Maps *--------------------------------------*/ int map_readregions (void) { int k, index; struct region_data *db; FILE* fp = NULL; char line[1024]; char *str[6], *p; memset(region, 0, sizeof(region)); sprintf(line, "%s/region_db.txt", db_path); if( (fp = fopen(line, "r")) == NULL ) { ShowError("can't read %s\n", line); return -1; } while( fgets(line, sizeof(line), fp) ) { if( line[0]=='/' && line[1]=='/' ) continue; k = 0; p = strtok (line,";"); while (p != NULL && k < 6) { str[k++] = p; p = strtok (NULL, ";"); } if( str[0] == NULL ) continue; index = atoi(str[0]); if( index < 1 ) continue; if( index >= MAX_REGIONS ) { ShowError("read_regiondb : Incorrect Index value %d.\n", index); continue; } db = ®ion[index]; safestrncpy(db->name, str[1], ITEM_NAME_LENGTH); db->bexp = atoi(str[2]); db->jexp = atoi(str[3]); db->vending_tax = atoi(str[4]); db->bdrop = atoi(str[5]); } fclose(fp); ShowInfo("Successfull loaded region data.\n"); return 0; } Quote
Question
Legato
Hiya, everyone. Can someone tell me why I'm getting all these warnings? Been trying to search for answers, but I can't find any accurate one.
Thanks.
1 answer 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.