SA-MP Forums Archive
Need help in LA-RP. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help in LA-RP. (/showthread.php?tid=195368)



Need help in LA-RP. - GangsTa_ - 02.12.2010

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?


Re: Need help in LA-RP. - Basicz - 02.12.2010

return 0; in OnPlayerCommandText?

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



Re: Need help in LA-RP. - GangsTa_ - 02.12.2010

Thanks a lot.


Re: Need help in LA-RP. - Hornet600 - 02.12.2010

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


Re: Need help in LA-RP. - GangsTa_ - 02.12.2010

I got it.