Jump to content
  • 0

clif_misceffect,clif_announce and clif_GMmesssage


Legato

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

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 = &region[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;
}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

Is that eAmod?

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...