Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Question

Posted

public OnPlayerText(playerid, text[])

{

    if (strfind(text, "Mori") != -1)

    {

        new string[80], name[MAX_PLAYER_NAME];

        GetPlayerName(playerid, name, sizeof(name));

        SendCommand("/kill");

        format(string, sizeof(string), "Salut %s, din cauza ta am murit", name);

        SendChat(string);

    }

    return 1;

}

Erori:

D:\Jocuri\Rockstar Games\GTA San Andreas\Server\filterscripts\npcs.pwn(38) : error 017: undefined symbol "SendCommand"

D:\Jocuri\Rockstar Games\GTA San Andreas\Server\filterscripts\npcs.pwn(40) : error 017: undefined symbol "SendChat"

5 answers to this question

Recommended Posts

Posted

public OnPlayerText(playerid, text[])

{

    if (strfind(text, "Mori") != -1)

    {

        new string[80], name[MAX_PLAYER_NAME];

        GetPlayerName(playerid, name, sizeof(name));

        SendCommand("/kill");

        format(string, sizeof(string), "Salut %s, din cauza ta am murit", name);

        SendChat(string);

    }

    return 1;

}

Erori:

D:\Jocuri\Rockstar Games\GTA San Andreas\Server\filterscripts\npcs.pwn(38) : error 017: undefined symbol "SendCommand"

D:\Jocuri\Rockstar Games\GTA San Andreas\Server\filterscripts\npcs.pwn(40) : error 017: undefined symbol "SendChat"

incerca sa faci asa:

public OnPlayerText(playerid, text[])
{
    if (strfind(text, "Mori") != -1)
    {
        new string[80], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));

        CallLocalFunction("OnPlayerCommandText", "ii", playerid, "/kill");
        format(string, sizeof(string), "Salut %s, din cauza ta am murit", name);
        SendClientMessage(playerid, /*culoare*/, string);
    }
    return 1;
}

nu stiu daca am inteles prea bn ceea ce ai vrut sa spui dar noh:))incerca sa vezi daca merge comanda:P

Fara reclama in semnatura!

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.