Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Warning 217: loose indentation

Статус
В этой теме нельзя размещать новые ответы.
Значит такая проблема:
mods.pwn(1000) : warning 217: loose indentation
Такая тема появляется после того, как я меняю:

case ClassAssistance:
{
Index = random(sizeof(ASpawnLocationsAssistance));
x = ASpawnLocationsAssistance[Index][SpawnX]; // Get the X-position for the spawnlocation
y = ASpawnLocationsAssistance[Index][SpawnY]; // Get the Y-position for the spawnlocation
z = ASpawnLocationsAssistance[Index][SpawnZ]; // Get the Z-position for the spawnlocation
Angle = ASpawnLocationsAssistance[Index][SpawnAngle]; // Get the rotation-angle for the spawnlocation
format(Msg, 128, "{00FF00}Игрок {FFFF00}%s{00FF00} зашёл за {FFFF00}механика", Name);
}
case ClassAssistance:
{
if (APlayerData[playerid][PlayerScore] < 200)
{
// Let the player know he needs 100 scorepoints
GameTextForPlayer(playerid, "Для класса механика требуется 200 очков", 5000, 4);
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Вам нужно 200 очков для данного класса");
return 0; // Don't allow the player to spawn as police player
}
Index = random(sizeof(ASpawnLocationsAssistance));
x = ASpawnLocationsAssistance[Index][SpawnX]; // Get the X-position for the spawnlocation
y = ASpawnLocationsAssistance[Index][SpawnY]; // Get the Y-position for the spawnlocation
z = ASpawnLocationsAssistance[Index][SpawnZ]; // Get the Z-position for the spawnlocation
Angle = ASpawnLocationsAssistance[Index][SpawnAngle]; // Get the rotation-angle for the spawnlocation
format(Msg, 128, "{00FF00}Игрок {FFFF00}%s{00FF00} зашёл за {FFFF00}механика", Name);
}


---------- Post added at 08:42 ---------- Previous post was at 08:40 ----------

А когда меняю это, всё нормально!
case ClassMafia:
{
Index = random(sizeof(ASpawnLocationsMafia));
x = ASpawnLocationsMafia[Index][SpawnX]; // Get the X-position for the spawnlocation
y = ASpawnLocationsMafia[Index][SpawnY]; // Get the Y-position for the spawnlocation
z = ASpawnLocationsMafia[Index][SpawnZ]; // Get the Z-position for the spawnlocation
Angle = ASpawnLocationsMafia[Index][SpawnAngle]; // Get the rotation-angle for the spawnlocation
format(Msg, 128, "{00FF00}Игрок {FFFF00}%s{00FF00} зашёл за {FFFF00}мафию", Name);
}
case ClassMafia:
{
if (APlayerData[playerid][PlayerScore] < 200)
{
// Let the player know he needs 100 scorepoints
GameTextForPlayer(playerid, "Для класса полиции требуется 100 очков", 5000, 4);
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Вам нужно 100 очков для данного класса");
return 0; // Don't allow the player to spawn as police player
}
Index = random(sizeof(ASpawnLocationsMafia));
x = ASpawnLocationsMafia[Index][SpawnX]; // Get the X-position for the spawnlocation
y = ASpawnLocationsMafia[Index][SpawnY]; // Get the Y-position for the spawnlocation
z = ASpawnLocationsMafia[Index][SpawnZ]; // Get the Z-position for the spawnlocation
Angle = ASpawnLocationsMafia[Index][SpawnAngle]; // Get the rotation-angle for the spawnlocation
format(Msg, 128, "{00FF00}Игрок {FFFF00}%s{00FF00} зашёл за {FFFF00}мафию", Name);
}


---------- Post added at 08:42 ---------- Previous post was at 08:42 ----------

В чём проблема?!
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу