28.09.2012, 16:15
Hi,
since yesterday i have a problem. My NPC doenst answer if i write for example "Hi Npc".
I think this is the problem:
public OnPlayerText(playerid, text[])
{
new strong[700];
format(strong, sizeof(strong), "(%d) %s:{FFFFFF} %s",playerid, SpielerName(playerid), text);
SendClientMessageToAll(GetPlayerColor(playerid), strong);
return 0;
}
The npc sends his text with SendChat.
I think SendChat doesnt work if OnPlayerText returns 0.
What can i do?
-Tim
since yesterday i have a problem. My NPC doenst answer if i write for example "Hi Npc".
I think this is the problem:
public OnPlayerText(playerid, text[])
{
new strong[700];
format(strong, sizeof(strong), "(%d) %s:{FFFFFF} %s",playerid, SpielerName(playerid), text);
SendClientMessageToAll(GetPlayerColor(playerid), strong);
return 0;
}
The npc sends his text with SendChat.
I think SendChat doesnt work if OnPlayerText returns 0.
What can i do?
-Tim