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: Unknown Command (
/showthread.php?tid=391193)
Unknown Command -
CrazyChoco - 09.11.2012
hAi i am getting Unknown Command after typing the code, it do all what i wanted it to do, but it show "Unknown command" at last. I use YCMD
code:
pawn Код:
YCMD:kill(playerid, params[], help)
{
new s[500];
new oscore;
oscore = GetPlayerScore(playerid);
SetPlayerScore(playerid,oscore -1);
SetPlayerHealth(playerid, -1);
format(s, sizeof(s),"{C0C0C0}[SERVER] {FFFFFF}You have commited suscide using /kill. You will first be able to spawn in next round!");
SendClientMessage(playerid, -1, s);
return 1;
}
Re: Unknown Command -
Glad2BeHere - 09.11.2012
y did u format a string if ur not using the real purpose of it best u did
SendClientMessage(playerid, -1, {C0C0C0}[SERVER] {FFFFFF}You have commited suscide using /kill. You will first be able to spawn in next round!");
Re: Unknown Command -
CrazyChoco - 10.11.2012
Because its the half of the xommand that message does also appear on my clearchat cmd any ideas?
Re: Unknown Command -
-=Dar[K]Lord=- - 10.11.2012
reduce it lol to 200...
O.o
Re: Unknown Command -
CrazyChoco - 10.11.2012
Yea, but it wont affect ehy it says:Unknown Command when i have entered the cmd and after it did what i progeammed it to
Re: Unknown Command -
-=Dar[K]Lord=- - 10.11.2012
hmm instead of
pawn Код:
new oscore;
oscore = GetPlayerScore(playerid);
Use:
pawn Код:
new oscore = GetPlayerScore(playerid);
may help
Re: Unknown Command -
CrazyChoco - 10.11.2012
Ill just step back to zCmd, as i am professional to use that xD Anyway thanZ for trying :3