Change 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Change SERVER: UNKNOWN COMMAND (
/showthread.php?tid=274661)
Change SERVER: UNKNOWN COMMAND -
Chrillzen - 06.08.2011
Yo, so i tried to change that message by putting this at the end of OnPlayerCommandText
Code:
return SendClientMessage(playerid,COLOR_RED,"Det hдr kommandot finns inte, /help.");
}
But it didn't work, i use ZCMD, how can i change the message?
Re: Change SERVER: UNKNOWN COMMAND -
WoodPecker - 06.08.2011
PHP Code:
forward OnPlayerCommandPerformed(playerid, cmdtext[], success);
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, COLOR_RED, "Det hдr kommandot finns inte, /help.");
return 1;
}
Re: Change SERVER: UNKNOWN COMMAND -
=WoR=Varth - 06.08.2011
pawn Code:
SendClientMessage(playerid,COLOR_RED,"Det hдr kommandot finns inte, /help.");
return 1;
Re: Change SERVER: UNKNOWN COMMAND -
Chrillzen - 06.08.2011
Quote:
Originally Posted by WoodPecker
PHP Code:
forward OnPlayerCommandPerformed(playerid, cmdtext[], success);
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, COLOR_RED, "Det hдr kommandot finns inte, /help.");
return 1;
}
|
Thanks works, i'm a idiot.
+Rep for you.
Quote:
Originally Posted by varthshenon
pawn Code:
SendClientMessage(playerid,COLOR_RED,"Det hдr kommandot finns inte, /help."); return 1;
|
That would never work becuse i use ZCMD.
Re: Change SERVER: UNKNOWN COMMAND -
WoodPecker - 06.08.2011
Im glad that i helped you, if you got more questions feel free to ask.
Re: Change SERVER: UNKNOWN COMMAND -
=WoR=Varth - 06.08.2011
I don't even know what is the purpose of that code. So I just put a simple code.