[Help] Kill command.
#1

Hi. My kill command makes an error . I wanna make it when you tipe /kill , to appear the message to all the server like : Dragonu has killed himself.

Here's the code :
Код:
	if (strcmp(cmd, "/kill", true) == 0)
	{
	    if(PlayerInfo[playerid][pJailedSec] > 0)
		{
			SendClientMessage(playerid, COLOR_RED, "You cannot kill yourself if you're in the jail.");
		}
		else
		{
			SetPlayerHealth(playerid, 0);
			GetPlayerName(playerid,PlayerName, sizeof(sendername2));
	        format(string,sizeof(string),".: %s Has killed himself (/kill) :.",PlayerName);
	        SendClientMessageToAll(COLOR_RED,string);
		}
		return 1;
	}
And this is the error :
Код:
D:\Games\GTA San Andreas\server\gamemodes\slrpg.pwn(7757) : error 048: array dimensions do not match
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
This is the line 7757 :
Код:
GetPlayerName(playerid,PlayerName, sizeof(sendername2));
Reply


Messages In This Thread
[Help] Kill command. - by [Aka]Dragonu - 01.12.2010, 06:19
Re: [Help] Kill command. - by BMUK - 01.12.2010, 07:42
Re: [Help] Kill command. - by [Aka]Dragonu - 01.12.2010, 08:00
Re: [Help] Kill command. - by Haydz - 01.12.2010, 08:14
Re: [Help] Kill command. - by [Aka]Dragonu - 01.12.2010, 08:45
Re: [Help] Kill command. - by WillyP - 01.12.2010, 08:54
Re: [Help] Kill command. - by BMUK - 01.12.2010, 08:54
Re: [Help] Kill command. - by [Aka]Dragonu - 01.12.2010, 08:56

Forum Jump:


Users browsing this thread: 2 Guest(s)