03.05.2009, 19:55
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/kill", true) == 0) { SetPlayerHealth(playerid, 0); } if(strcmp(cmdtext, "/help", true) == 0) { SendClientMessage(playerid, COLOR_RED, "** HELP **"); SendClientMessage(playerid, COLOR_RED, "** COMMANDS ** /help /kill** "); //More help here Florynho } { new string[256]; GetPlayerName(playerid, string, 24); format(string, 256, "%s Need Help!!!", string); for (new i; i != GetMaxPlayers(); i ++) if (GetPlayerTeam(i) == GetPlayerTeam(playerid)) SendClientMessage(i, GetPlayerColor(playerid), string); return 0; } return 0; }
Код:
D:\samp02Xserver.win32\gamemodes\new.pwn(19) : warning 217: loose indentation D:\samp02Xserver.win32\gamemodes\new.pwn(29) : warning 225: unreachable code D:\samp02Xserver.win32\gamemodes\new.pwn(29) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.