Jump to content
  • 0

Question

Posted

Deci cand scriu o comanda de exemplu:

/smoke

imi executa comanda dat imi apare tot ce am scris la comenzi(adica /help....etc..)si se executa si celelalte comenzi...

2 answers to this question

Recommended Posts

Posted

La sfarsitul comenzii trebuie sa pui return 1;, exemplu:

if(strcmp(cmdtext, "/comanda",true) == 0)
{
    //chestii
    return 1;
}
si la sfarsitul la OnPlayerCommandText trebuie return 0;, exemplu:
public OnPlayerCommandText(playerid,cmdtext[])
{
    if(strcmp(cmdtext,"/comanda",true) == 0)
    {
        //chestii
        return 1;
    }
    return 0;
}

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.