Jump to content
  • 0

Bug la comenzi


NightMare

Question

2 answers to this question

Recommended Posts

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;
}

Link to comment
Share on other sites

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.