kadkot550
Новичок
Помогите пожалуйста, попытался добавить ворота, а добавил 2 ошибки и 3 варнинга.
Вот всё, с чем я работал:
Кто поможет, +.
PHP:
C:\Users\KadKot550\Desktop\VeryNice\gamemodes\VeryNice.pwn(32866) : warning 217: loose indentation
C:\Users\KadKot550\Desktop\VeryNice\gamemodes\VeryNice.pwn(32866) : error 029: invalid expression, assumed zero
C:\Users\KadKot550\Desktop\VeryNice\gamemodes\VeryNice.pwn(32866) : error 004: function "GatevvClose" is not implemented
C:\Users\KadKot550\Desktop\VeryNice\gamemodes\VeryNice.pwn(32875) : warning 225: unreachable code
C:\Users\KadKot550\Desktop\VeryNice\gamemodes\VeryNice.pwn(32875) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
PHP:
forward GatevvClose(playerid);
PHP:
new gatevv;
PHP:
gatevv = CreateObject(980,321.31,-1188.44,78.20,0.00,0.00,39.00);
PHP:
if(!strcmp(cmd, "/vipopen", true))
{
if(PlayerInfo[playerid][pLeader] == 0 || PlayerInfo[playerid][pMember] == 0)
{
if (PlayerToPoint(25, playerid,321.31,-1188.44,72.60))
{
MoveObject(gatevv,321.31,-1188.44,72.60, 2);
SetTimer("GatevvClose", 20000, 0);
gatetimeract = SetTimer("GatevvClose", 20000, 0);
SendClientMessage(playerid, COLOR_RED," Ворота открылись. Они будут закрыты через 20 секунд.");
}
}
return 1;
}
//////////////////////////////////-------///////////////////////////////////
public GatevvClose (playerid)
{
MoveObject(gatevv, 321.31,-1188.44,78.20, 2);
KillTimer(gatetimeract);
return 1;
}
Последнее редактирование:
