09.03.2013, 18:34
Using this command make 0.3x samp-npc to crash on any typed text Why?
And here brake point of this :
Any help apprised.
pawn Код:
//source https://sampwiki.blast.hk/wiki/NPC:OnPlayerText
public OnPlayerText(playerid, text[])
{
if (strfind(text, "stupid bot") != -1)
{
new string[80], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Hey %s! Don't say those things! We, bots, are cool!", name);
SendChat(string);
}
return 1;
}
Any help apprised.