Jump to content

Recommended Posts

metin2dev Hi I have a cmd error emotion tells me but I did not put brackets we put
I do not speak English well I hope you do not mind my English marsh

 

Citat

  if (victim)
	{
		if (victim->IsBlockMode(BLOCK_EMOTION_REQUEST)
		{
			ch->ChatPacket(CHAT_TYPE_INFO, "%s is blocked emotion requests", victim->GetName());
			return;
		}
		
		LPDESC pkVictimDesc = victim->GetDesc();
		if (pkVictimDesc)
		{
			TPacketGCWhisper pack;

			char msg[450];
			sprintf(msg, "You challenged %s for a emotion.", ch->GetName());

			int len = MIN(CHAT_MAX_LEN, strlen(msg) + 1);

			pack.bHeader = HEADER_GC_WHISPER;
			pack.wSize = sizeof(TPacketGCWhisper)+len;
			pack.bType = WHISPER_TYPE_SYSTEM;
			strlcpy(pack.szNameFrom, ch->GetName(), sizeof(pack.szNameFrom));

			TEMP_BUFFER buf_wh;

			buf_wh.write(&pack, sizeof(TPacketGCWhisper));
			buf_wh.write(msg, len);

			ch->PacketAround(buf_wh.read_peek(), buf_wh.size());
		}
	}
}

s not declared in this scope

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 
cmd_emotion.cpp:258: error: expected `)' before '{' token
cmd_emotion.cpp:264: error: 'pkVictimDesc' was not declared in this scop
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.