Jump to content
  • 0

ajutor la server


jupanu

Question

6 answers to this question

Recommended Posts

jupanu, cauta ultima comanda din GM si vezi daca ai return 0; dupa ea.

Ultima comanda ar trebuii sa fie de genul asta:

    if(strcmp(cmdtext,"/comanda",true)==0)
    {
        //restu de linii din comanda
        return 1;
    }
    return 0;
}

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

la sfarsitul comenzilor am

    	else
	    format(string, sizeof(string),"Command %s don't exist.Please try /help.",cmdtext);
        SendClientMessage(playerid, 0xE60000FF, string);
si daca ii pun return 0; imi da o eroare
    	else
	    format(string, sizeof(string),"Command %s don't exist.Please try /help.",cmdtext);
        SendClientMessage(playerid, 0xE60000FF, string);
	    return 1;
	    }
return 0;
} 
Error
error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

  • www.LcsNet.org
  • 91.233.106.13:7777
  • www.Joc-Miniclip.info

Link to comment
Share on other sites

Incearca sa pui in loc de

       else
       format(string, sizeof(string),"Command %s don't exist.Please try /help.",cmdtext);
        SendClientMessage(playerid, 0xE60000FF, string);
asta:
       return ComandaNecunoscuta(playerid,cmdtext);
}
, stergi return 1; de dupa return ComandaNecunoscuta... si mai adaugi asta undeva in script:
stock ComandaNecunoscuta(playerid,cmdtext[])
{
    new string[128];
    format(string, sizeof(string),"Command %s don't exist.Please try /help.",cmdtext);
    SendClientMessage(playerid, 0xE60000FF, string);
    return 0;
}

Cred ca nu o sa reusesti pentru ca habar n-ai.  :evil:

Link to comment
Share on other sites

l-am pus asa si s-a copilat

       return ComandaNecunoscuta(playerid,cmdtext);
}
stock ComandaNecunoscuta(playerid,cmdtext[])
{
    new string[128];
    format(string, sizeof(string),"Command %s don't exist.Please try /help.",cmdtext);
    SendClientMessage(playerid, 0xE60000FF, string);
    return 0;
}

  • www.LcsNet.org
  • 91.233.106.13:7777
  • www.Joc-Miniclip.info

Link to comment
Share on other sites

l-am pus asa si s-a copilat

       return ComandaNecunoscuta(playerid,cmdtext);
}
stock ComandaNecunoscuta(playerid,cmdtext[])
{
    new string[128];
    format(string, sizeof(string),"Command %s don't exist.Please try /help.",cmdtext);
    SendClientMessage(playerid, 0xE60000FF, string);
    return 0;
}

Bravo, acum testeaza si spune-ne daca merge.
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.