admin chat and tester chat dont work
#1

Hi, I recently changed admin chat from this
pawn Код:
if(text[0], '#' && (PlayerInfo[playerid][pTester] >= 1 || PlayerInfo[playerid][pAdmin] >= 1))
to this
pawn Код:
if(!strcmp(text[0], "//") && (PlayerInfo[playerid][pTester] >= 1 || PlayerInfo[playerid][pAdmin] >= 1))
and same with the tester chat. But now when i type // It says that its an unknown command. What is wrong? I get no errors on complie
Reply
#2

Because / tells the server you're initiating a new command!
Reply
#3

But how can I make the admin chat use // insted of #? I know it is possible cuz I have seen it on other server
Reply
#4

Make a new command called /

Example: CMD:/(playerd, params[])
Reply
#5

Oh right.. Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)