Why using native from string.inc crash samp-npc
#1

Using this command make 0.3x samp-npc to crash on any typed text Why?

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;
}
And here brake point of this :


Any help apprised.
Reply


Messages In This Thread
Why using native from string.inc crash samp-npc - by Azazelo - 09.03.2013, 18:34
Re: Why using native from string.inc crash samp-npc - by MP2 - 09.03.2013, 18:36
Re: Why using native from string.inc crash samp-npc - by Azazelo - 09.03.2013, 18:41

Forum Jump:


Users browsing this thread: 3 Guest(s)