Need help in LA-RP.
#1

Hello all. I am trying to move LA-RP to another place...
But anyways let's go to the problem.
http://forum.sa-mp.com/showthread.ph...eles+role+play

Well, when I write a bad command, it doesn't shows me the text "SERVER: Unknown Command"
I need it because I can't test commands really to see if they work. How to make that when I write a bad command it will show me that message?
Reply
#2

return 0; in OnPlayerCommandText?

pawn Код:
public OnPlayerCommandText( blablabla... )
{
/* commands here */
return 0;
}
Reply
#3

Thanks a lot.
Reply
#4

Or you can do it,
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{


    return SendClientMessage(playerid, COLOR_RED, " That command doesn't exist ");
}
and his code his wrong
returning 0 it will not send the message
so mine means "1"

You could just change to return 1; or put other message
Reply
#5

I got it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)