19.01.2011, 15:16
(
Последний раз редактировалось Michael@Belgium; 19.01.2011 в 15:51.
Причина: SOLVED
)
The error: (warning)
So line 338 to 361:
SOLVED
pawn Код:
C:\Users\Michael\Desktop\GTA\Eigen server\gamemodes\ShipDM.pwn(340) : warning 217: loose indentation
C:\Users\Michael\Desktop\GTA\Eigen server\gamemodes\ShipDM.pwn(353) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
pawn Код:
new cmd[128],idx,tmp[256];
cmd = strtok(cmdtext, idx);
if(IsPlayerAdmin(playerid)) //line 340
{
if(!strcmp(cmd, "/akill", true, 6))
{
new id;
tmp = strtok(cmdtext, idx);
id = strval(tmp);
if(strlen(tmp) == 0) return false;
else SetPlayerHealth(id, 0);
SendClientMessageToAll(COLOR_RED, "Someone is been killed by the admin !");
}
}
if (IsPlayerAdmin(playerid)) //line 353
{
if(strcmp("/money", cmdtext, true) == 0)
{
GivePlayerMoney(playerid, 10000);
return 1;
}
}