Doesn't show cmds.
#1

I turn on my server, went in game and it doesn't respond on any cmds, not even /help, but the dialogs are fine. My script uses these includes:
Код:
#include 	<foreach>
#include 	<a_mysql>
#include 	<streamer>
#include 	<zcmd>
#include 	<rBits>
What could be the problem? I updated the zcmd include, but that wasn't the problem.
Reply
#2

Anyone??
Reply
#3

Show us your command not work.
Reply
#4

Do you use only one command processor? For example, don't use ZCMD and dcmd because they will conflict each other.
Reply
#5

Here's /help command which isn't working.
I will check if it isn't using dcmd too. btw. sorry for my bad english.

Код:
COMMAND:help(playerid,params[])
{
	new string[1580];
	format(string,sizeof(string),"{13DDD3}:: KONTS :: {FFFFFF}/stats /levelup /upgrade /frisk /putgun /takegun");
	strcat(string,"\n{17E867}:: GALVENAIS :: {FFFFFF}/bail /pay /charity /time /buy /unrentcar /id /drink /usecar /stopusecar");
	strcat(string,"\n{17E867}:: GALVENAIS :: {FFFFFF}/buygun /lock /skill /licenses /showlicenses(/sl) /report /stopanim /fuel");
	strcat(string,"\n{17E867}:: GALVENAIS :: {FFFFFF}(/re)port /cancel /accept /eject /usedrugs /fill /admins /fillup");
	strcat(string,"\n{17E867}:: GALVENAIS :: {FFFFFF}(/wi)ndows /trunk (/inv)entory /knock /give /sid /lightup /dropgun /pickupgun");
	strcat(string,"\n{17E867}:: GALVENAIS :: {FFFFFF} /boxstats /fight /dropmats /dropdrugs /pickupmats /pickupdrugs");
	strcat(string,"\n{17E867}:: ČATS :: {FFFFFF}/setfreq (/p)m (/o)oc (/s)hout /low /b /f /me /do /togooc /tognews /togfam /togphone");
	strcat(string,"\n{17E867}:: BANKA :: {FFFFFF}/balance /withdraw /deposit /transfer");
	if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
	{
		strcat(string,"\n{E4E108}:: LSPD :: {FFFFFF}(/r)adio (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /backup(/bk)");
		strcat(string,"\n{E4E108}:: LSPD :: {FFFFFF}/take /ticket /deliver /dragincar /untie");
		strcat(string,"\n{E4E108}:: LSPD :: {FFFFFF}/ResetBackup(/bkc) /showbadge /tracelastcall(/tlc)");
		strcat(string,"\n{E4E108}:: LSPD :: {FFFFFF}/checkalko /dooropen /takecar /createstrip /ras");
	}
	else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) {
	strcat(string,"\n{E4E108}:: MEDIĶIS :: {FFFFFF}(/r)adio /heal /duty /tracelastcall(/tlc) /showmed /ticket /dragincar"); }
	else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) {
    strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/live /news [text]"); }
	else if(PlayerInfo[playerid][pJob] == 3) {
    strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/sex"); }
    else if(PlayerInfo[playerid][pJob] == 7) {
    strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/repair /refill /duty"); }
	else if(PlayerInfo[playerid][pJob] == 8) {
    strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/guard (Prezidenta miesassargs: /duty)"); }
    else if(PlayerInfo[playerid][pJob] == 24) {
    strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/duty"); }
    else if(PlayerInfo[playerid][pJob] == 16) {
    strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/buyprods /sellprods /prodcheck"); }
    else if(PlayerInfo[playerid][pJob] == 17) {
    strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/duty"); }
    else if(PlayerInfo[playerid][pJob] == 19) {
    strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/duty"); }
    else if(PlayerInfo[playerid][pJob] == 20) {
    strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/buydrugs /selldrugsto"); }
    else if(PlayerInfo[playerid][pJob] == 21) {
    strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/startsweep /stopsweep"); }
    else if(PlayerInfo[playerid][pJob] == 22) {
	strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/smugglemats"); }
    else if(PlayerInfo[playerid][pJob] == 23) {
    strcat(string,"\n{E4E108}:: DARBS :: {FFFFFF}/creategun {FF0033}Materiālus iegūsti no vadātājiem."); }
	if(PlayerInfo[playerid][pAdmin] >= 1)
	{
		strcat(string,"\n{13DDD3}:: ADMINS :: {FFFFFF}(/a)dmin (/ah)elp");
	}
	strcat(string,"\n{B488D4}:: CITS :: {FFFFFF}/phonehelp /househelp /vehiclehelp /renthelp /businesshelp /leaderhelp");
	strcat(string,"\n{B488D4}:: CITS :: {FFFFFF}/animlist");
	ShowPlayerDialog(playerid,DIALOG_UNUSED,DIALOG_STYLE_MSGBOX,"{FF0011}Funkciju saraksts",string,"Aizvērt","");
	return 1;
}
Reply
#6

Can problem be that the ZCMD commands aren't under OnPlayerCommandText?
Reply
#7

Quote:
Originally Posted by Erase
Посмотреть сообщение
Can problem be that the ZCMD commands aren't under OnPlayerCommandText?
No, that's how they should be. OUTSIDE of any callback.

Once again, make sure that you're using only ZCMD to that mode.

Plus, a test would be good:
pawn Код:
CMD:testme( playerid, params[ ] )
{
    SendClientMessage( playerid, -1, "Erase, that command works!" );
    return 1;
}
Add it to your script, run your server, test it. Does it actually print it or not? If not, read the above and make sure that you do not use something else but only ZCMD.
Reply
#8

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
No, that's how they should be. OUTSIDE of any callback.

Once again, make sure that you're using only ZCMD to that mode.

Plus, a test would be good:
pawn Код:
CMD:testme( playerid, params[ ] )
{
    SendClientMessage( playerid, -1, "Erase, that command works!" );
    return 1;
}
Add it to your script, run your server, test it. Does it actually print it or not? If not, read the above and make sure that you do not use something else but only ZCMD.
/testme Not working either.
Reply
#9

Do you have the zcmd include in pawno/include folder?
If you don't, download it and recompile your script.
Reply
#10

Yes i have it and i have recompiled the script many times.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)