22.07.2010, 15:31
Ok it worked thanks.
And how i make so when i say hello sir to the npc,
He responds with some text? i tried this but it gives error:
public OnPlayerText(playerid, text[])
{
if (strfind(text, "Hello officer,?") != -1)
{
new string[80], name[MAX_PLAYER_NAME];
format(string, sizeof(string), "Hello.");
SendChat(string);
return 0;
}
And how i make so when i say hello sir to the npc,
He responds with some text? i tried this but it gives error:
public OnPlayerText(playerid, text[])
{
if (strfind(text, "Hello officer,?") != -1)
{
new string[80], name[MAX_PLAYER_NAME];
format(string, sizeof(string), "Hello.");
SendChat(string);
return 0;
}