01.12.2010, 06:19
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 :
And this is the error :
This is the line 7757 :
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; }
Код:
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.
Код:
GetPlayerName(playerid,PlayerName, sizeof(sendername2));