Big problem with commands
#1

Hello,today i found a big problem on my gamemode.

If i'm ID 0,EVERY command STOP to run,like /pm - /report - /goto - /ban and other admin/player commands.

I tested the gamemode with some friends,they was id 1 and 2,me id 0.

The commands was working for their,for me no.

I use zcmd.

This is my blank OnPlayerCommandText,because every command is outside any callback.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return 1;
}
Thanks for help!
Reply
#2

I think I'm getting what you're saying. Try this:

https://sampforum.blast.hk/showthread.php?tid=339361
Reply
#3

every comand or just some particular ones ?
Reply
#4

Try with this tutorial )
https://sampforum.blast.hk/showthread.php?tid=339361
+1 if this is helpfull
Reply
#5

re-install sscanf.
Reply
#6

https://sampwiki.blast.hk/wiki/OnPlayerCommandText

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return 0;
}
Reply
#7

try to delete the whole OnPlayerCommandText callback then try
Reply
#8

Quote:
Originally Posted by deltapro
Посмотреть сообщение
Try with this tutorial )
https://sampforum.blast.hk/showthread.php?tid=339361
+1 if this is helpfull
Seriously, quit stealing my shit. Look at my reply.
Reply
#9

Quote:
Originally Posted by Edward156
Посмотреть сообщение
I think I'm getting what you're saying. Try this:

https://sampforum.blast.hk/showthread.php?tid=339361
Sscanf is already updated.

Quote:
Originally Posted by ******
Посмотреть сообщение
Did it not occur to you that posting blank, unused code might not be the most helpful part of your mode to post? "OnPlayerCommandRecieved", "OnPlayerCommandPerformed", or even a command would have helped! You may as well have posted your "OnVehicleStreamIn" for all the good that code does us in helping!
Sorry,i'll post it later.

Quote:
Originally Posted by axxelac
Посмотреть сообщение
every comand or just some particular ones ?
Every command.

Quote:
Originally Posted by deltapro
Посмотреть сообщение
Try with this tutorial )
https://sampforum.blast.hk/showthread.php?tid=339361
+1 if this is helpfull
Already updated.

Quote:
Originally Posted by The__
Посмотреть сообщение
re-install sscanf.
Done.

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/OnPlayerCommandText

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return 0;
}
I've return 1 to that.

Quote:
Originally Posted by Saad_
Посмотреть сообщение
try to delete the whole OnPlayerCommandText callback then try
Ok.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)