/kill command bugged
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256], idx;
cmd = strtok(cmdtext, idx);

if (strcmp(cmdtext, "/kill", true) == 0)
{
SetPlayerHealth(playerid, 0.0);
return 1;
}

return 0;
}
This will fix the warning. About the error, you're missing a bracket somewhere in the script probably.
Reply


Messages In This Thread
/kill command bugged - by skalman - 03.06.2009, 13:29
Re: /kill command bugged - by Correlli - 03.06.2009, 13:34
Re: /kill command bugged - by Think - 03.06.2009, 13:38
Re: /kill command bugged - by skalman - 03.06.2009, 13:48
Re: /kill command bugged - by Correlli - 03.06.2009, 13:52
Re: /kill command bugged - by skalman - 03.06.2009, 13:59
Re: /kill command bugged - by Correlli - 03.06.2009, 14:01
Re: /kill command bugged - by radhakr - 03.06.2009, 17:52
Re: /kill command bugged - by gergo11 - 03.06.2009, 18:13
Re: /kill command bugged - by Mike Garber - 03.06.2009, 20:32

Forum Jump:


Users browsing this thread: 4 Guest(s)