Disable all Commands Except...
#21

Quote:
Originally Posted by Xtreme_playa
Посмотреть сообщение
You must have done something wrong, it always works. Check if you've made any typos again.
I think i just used ZCMD with Onplayercommantext that is not compatible with both.
Reply
#22

Quote:
Originally Posted by kbalor
Посмотреть сообщение
I think i just used ZCMD with Onplayercommantext that is not compatible with both.
If you wish to use zcmd, then delete OnPlayerCommandText callback entirely.
Reply
#23

Quote:
Originally Posted by Andi_Evandy
Посмотреть сообщение
change
pawn Код:
OnPlayerCommandText(playerid,cmdtext[])
to:
pawn Код:
OnPlayerCommandReceived(playerid,cmdtext[])
tons of error. You want me to show? XD
Reply
#24

Quote:
Originally Posted by Xtreme_playa
Посмотреть сообщение
If you wish to use zcmd, then delete OnPlayerCommandText callback entirely.
then what will happen to this command?

Код:
{
     if(strcmp(cmdtext,"/t")==0 && cmdtext[2]=='\0')
     {
          if(gCommandsDisabled[playerid]==true)
          {
                //Text dialog blablab
                return 1:
          }

     }
Reply
#25

Anyone got a problem like this??

warning 203: symbol is never used: "zcmd_OnPlayerCommandText"
Reply
#26

Quote:
Originally Posted by kbalor
Посмотреть сообщение
then what will happen to this command?

Код:
{
     if(strcmp(cmdtext,"/t")==0 && cmdtext[2]=='\0')
     {
          if(gCommandsDisabled[playerid]==true)
          {
                //Text dialog blablab
                return 1:
          }

     }
I have never worked with ZCMD.
From previous posts I saw that you can't use OnPlayerCommandText at same time as ZCMD. Don't know if that is true.
Anyways, I think the command will look like this way in ZCMD :
pawn Код:
CMD:t(playerid, params[])
{
     if(gCommandsDisabled[playerid]==true)
     {
           //Text dialog blablab
           return 1:
     }
     //...
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)