how to get fnpc name?
#1

Example i created 2 npc

Zm[Aiid][0] = FCNPC_Create("Npcfisher1");
Zm[Aiid][1] = FCNPC_Create("Npcfisher2");

how can i get name FCNPC Npcfisher1 and Npcfisher2 ?


if( i want check name Npcfisher1 here )
{

//////

}
else if( i want check name Npcfisher2 here )
{
//////

}


Please help
Reply
#2

Save the name in some var.

pawn Code:
enum npcs_info
{
    id,
    name[30]
};

new Zm[MAX_PLAYERS][npcs_info];

Zm[Aiid][id] = FCNPC_Create("Npcfisher1");
format(Zm[Aiid][name], 30, "Npcfisher1");

if(!strcmp("name","Zm[Aiid][name])) //names equals
{
}
else //...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)