Help please! /kill cmd
#1

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
Reply
#2

pawn Код:
SetPlayerHealth(playerid, 0);
Reply
#3

yus, you gotta put in the playerid in the Setplayerhealth or else samp wont know which player to set heath = 0
Reply
#4

thankyou!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)