serega562
Умник
у меня такой вопрос
При созданее ворот+компликтации пишет
D:\Ìîäû\Sunny World\gamemodes\SunnyWorld.pwn(58658) : warning 217: loose indentation
D:\Ìîäû\Sunny World\gamemodes\SunnyWorld.pwn(58667) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
D вот сам код
if(newkeys == KEY_WALK)
{
if(PlayerInfo[playerid][pMember] == 1 ||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pAdmin] >= 1)
{
if(!PlayerToPoint(5.0,playerid,1588.3395,-1637.9985,19.0000))
{
SendClientMessage(playerid, COLOR_RED, "* Вы не возле ворот!");
return 1;
}
MoveObject(Gate,1588.3395,-1637.9985,19.0000,2.0);
SetTimer("GateClose", 10000, 0);
GateTimer = SetTimer("GateClose", 10000, 0);
PlayerPlaySound(playerid, 1190, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Ворота закроются через 10 секунд");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED,"* Вы не сотрудник LSPD !");
return 1;
}
}
}
При созданее ворот+компликтации пишет
D:\Ìîäû\Sunny World\gamemodes\SunnyWorld.pwn(58658) : warning 217: loose indentation
D:\Ìîäû\Sunny World\gamemodes\SunnyWorld.pwn(58667) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
D вот сам код
if(newkeys == KEY_WALK)
{
if(PlayerInfo[playerid][pMember] == 1 ||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pAdmin] >= 1)
{
if(!PlayerToPoint(5.0,playerid,1588.3395,-1637.9985,19.0000))
{
SendClientMessage(playerid, COLOR_RED, "* Вы не возле ворот!");
return 1;
}
MoveObject(Gate,1588.3395,-1637.9985,19.0000,2.0);
SetTimer("GateClose", 10000, 0);
GateTimer = SetTimer("GateClose", 10000, 0);
PlayerPlaySound(playerid, 1190, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Ворота закроются через 10 секунд");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED,"* Вы не сотрудник LSPD !");
return 1;
}
}
}
