Problem with my GM
#1

ЎHi! Look...i have a problem with my gm...when i go to server and write /help or /ah...not function,don't appear "Unknown" Command.. :S

Video...


Help

I'm doing a RP GM....



Reply
#2

Paste some code
Reply
#3

how do you use your strcmp under OnPlayerCommandText ?
Reply
#4

make sure you return 0

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

/* Returning '0' is used to inform the server that the command
has not been successfully processed, and passes it to other scripts.
If there hasn't been a successful process, then you will get that
'SERVER: Unknown Command.' error.
*/
Reply
#5

Quote:
Originally Posted by fps_doug
make sure you return 0

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

/* Returning '0' is used to inform the server that the command
has not been successfully processed, and passes it to other scripts.
If there hasn't been a successful process, then you will get that
'SERVER: Unknown Command.' error.
*/
Solved!!! Thanks man !!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)