[Help] 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: [Help] Unknown Command -.-" (
/showthread.php?tid=186683)
/// -
Alen_Mekic - 30.10.2010
/////
Re: [Help] Unknown Command -.-" -
DarkPower - 30.10.2010
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/kill", cmdtext, true) == 0)
{
SetPlayerHealth(playerid, 0);
return true;
}
return false;
}
Re: [Help] Unknown Command -.-" -
Alen_Mekic - 30.10.2010
Still doesn't work...
Re: [Help] Unknown Command -.-" -
DarkPower - 30.10.2010
Are you use some other command processors something like: zcmd, ycmd, dcmd?
Re: [Help] Unknown Command -.-" -
HyperZ - 30.10.2010
Try this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
return 1;
}
return 0;
}
You're using zcmd?
Re: [Help] Unknown Command -.-" -
Alen_Mekic - 30.10.2010
/////////
Re: [Help] Unknown Command -.-" -
DarkPower - 30.10.2010
Quote:
Originally Posted by mr.sunny
Try this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/kill", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid, 0); return 1; } return 0; }
You're using zcmd?
|
why
pawn Код:
if (strcmp("/kill", cmdtext, true, 10) == 0)
take a look on your code dude
Do you use some FS?
My suggestion is next:
Download zcmd here:
http://solidfiles.com/d/879d1213462f...6d464e90c8cf9/
and then put that file in your pawno/includes folder and on top of mode under this code
put
and then DELETE THIS
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
return 1;
}
return 0;
}
and put this
pawn Код:
COMMAND:kill(playerid,params[])
{
#pragma unused params
SetPlayerHealth(playerid, 0);
return true;
}
Re: [Help] Unknown Command -.-" -
Alen_Mekic - 30.10.2010
I don't use FS's
Re: [Help] Unknown Command -.-" -
DarkPower - 30.10.2010
look my message i edit, please read and follow instruction
Re: [Help] Unknown Command -.-" -
Alen_Mekic - 30.10.2010
Quote:
Originally Posted by DarkPower
look my message i edit, please read and follow instruction 
|
Thanks a lot.