Server: Unknown Command - 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)
+--- Thread: Server: Unknown Command (
/showthread.php?tid=403217)
Server: Unknown Command -
megamind2067 - 29.12.2012
When I type an incorrect command my server says this: Server: Unknown Command
How do I change that?
Re : Server: Unknown Command -
DaRk_RaiN - 29.12.2012
A lot of ways to do it, here's an easy one
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, -1, "bla bla use /cmds");
return 1;
}
Re: Re : Server: Unknown Command -
mariolatif741 - 29.12.2012
Quote:
Originally Posted by DaRk_RaiN
A lot of ways to do it, here's an easy one
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(!success) SendClientMessage(playerid, COLOR_RED, "bla bla use /cmds"); return 1; }
|
thanks that helped me too!
If you didn't know how to do it
here is a tutorial:
1.Copy this and paste it under "public OnPlayerCommandText(playerid, cmdtext[])"
2.If you get this error "serverfile\gamemodes\test25.pwn(101) : error 017: undefined symbol "COLOR_RED""
just replace "COLOR_RED" with the colour code you want
3.Compile it with the Blue arrow up
and you are done!
Re: Server: Unknown Command -
[CG]Milito - 29.12.2012
Quote:
Originally Posted by mariolatif741
thanks that helped me too!
If you didn't know how to do it
here is a tutorial:
1.Copy this and paste it under "public OnPlayerCommandText(playerid, cmdtext[])"
2.If you get this error "serverfile\gamemodes\test25.pwn(101) : error 017: undefined symbol "COLOR_RED""
just replace "COLOR_RED" with the colour code you want
3.Compile it with the Blue arrow up
and you are done!
|
Hell no!
Just replace
with
pawn Код:
return SendClientMessage(playerid, YourDefinedColor, "blah,blah,blah,");
Re: Server: Unknown Command -
Mr.Anonymous - 29.12.2012
The best one is the one which
DaRk_RaiN suggested.