23.07.2009, 13:46
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(0);
return 1;
}
return 0;
}
Why does this simple command not work? I get the warning -warning 202: number of arguments does not match definition
When tested in my server it occasionally works but often does not work -- in both cases it says "Server did not recognise commmand". Please help! I'd like to use /kill
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(0);
return 1;
}
return 0;
}
Why does this simple command not work? I get the warning -warning 202: number of arguments does not match definition
When tested in my server it occasionally works but often does not work -- in both cases it says "Server did not recognise commmand". Please help! I'd like to use /kill