Help with zcmd - 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: Help with zcmd (
/showthread.php?tid=464526)
Help with zcmd -
CesarLT - 17.09.2013
Heya, am kinda new to scripting and I have a little problem, since zcmd is kinda new to me.
So I included it, and placed zcmd in pawno/include, now when I type this:
pawn Код:
cmd:kill(playerid, params[])
{
SetPlayerHealth(playerid, 0);
return 1;
}
I get this error, and the cmd won't work in-game, so I am doing wrong?
pawn Код:
C:\Users\xxxx\Desktop\xxxx\gamemodes\xxxx.pwn(230) : warning 203: symbol is never used: "kill"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Re: Help with zcmd -
Wizza - 17.09.2013
What line is 230?
Re: Help with zcmd -
alinategh - 17.09.2013
capitalize cmd, like:
pawn Код:
CMD:kill(playerid, params[])
{
SetPlayerHealth(playerid, 0);
return 1;
}
Re: Help with zcmd -
CesarLT - 17.09.2013
Quote:
Originally Posted by Wizza
What line is 230?
|
There is no line 230..
Quote:
Originally Posted by alinategh
capitalize cmd, like:
pawn Код:
CMD:kill(playerid, params[]) { SetPlayerHealth(playerid, 0); return 1; }
|
Thanks complies clrearly.