22.02.2013, 16:08
Hello this is my Script Gates
but i got this warning whyyyyyy PLSSSS Help meee if you now how
pawn Код:
#include <a_samp>
new lspdg;
new pdgate1;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
pdgate1 = CreateObject(968,1544.6992188,-1623.8994141,13.0000000,0.0000000,88.0000000,265.9982300); //object(barrierturn) (PD Kapija Zatvorena)
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/po", cmdtext, true, 10) == 0)
{
new pdkapijaot;
if (IsPlayerInRangeOfPoint(playerid, 15,1544.5923,-1627.1566,13.3828))
{
if(lspdg == 1) { SendClientMessage(playerid, 0xFF000000, "** Vrata vec otvorena"); return 1; }
MoveObject(pdgate1,1544.6992188,-1623.8994141,13.0000000, 0.8);
SendClientMessage(playerid, 0xFF000000,"Vrata na garazi otvorena,nakon 7 sekundi automatski ce se spustiti .");
SendClientMessage(playerid, 0xFF000000,"Kapija Otvorena");
SetTimer("pdkapijaot", 12000, 0);
pdkapijaot = MoveObject(pdgate1, 1544.6992188,-1623.8994141,13.0000000,1.0,0.0000000,88.0000000,265.9982300);
ShowPlayerDialog(playerid, pdkapijaot, DIALOG_STYLE_MSGBOX, "Uspesno", "Uspesno ste otvorili kapiju", "Ok", "Ok");
}
return 1;
}
return 0;
}
pawn Код:
C:\Users\van\Desktop\Samp Server 1.0 0.3x\filterscripts\Gates.pwn(52) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.