//-------------------------------[Kill]-------------------------------------------------------------------------
new suicider[MAX_PLAYER_NAME];
if(strcmp(cmd, "/kill", true) == 0)
{
GetPlayerName(playerid, suicider, sizeof(suicider));
SetPlayerHealth(playerid,0.0);
format(string, sizeof(string), "* %s takes out a knife from jacket, and takes a suicide.", suicider);
SendClientMessageToAll(COLOR_RED, string);
return 1;
new suicider[MAX_PLAYER_NAME];
if(strcmp(cmd, "/kill", true) == 0)
{
new string[128];
GetPlayerName(playerid, suicider, sizeof(suicider));
SetPlayerHealth(playerid,0.0);
format(string, sizeof(string), "* %s takes out a knife from jacket, and takes a suicide.", suicider);
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
|
Originally Posted by Flo_White
Код:
new suicider[MAX_PLAYER_NAME];
if(strcmp(cmd, "/kill", true) == 0)
{
new string[128];
GetPlayerName(playerid, suicider, sizeof(suicider));
SetPlayerHealth(playerid,0.0);
format(string, sizeof(string), "* %s takes out a knife from jacket, and takes a suicide.", suicider);
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
you forgot the new string[128]; and a } |
|
Originally Posted by Mikep
Takes a suicide?
|