SA-MP Forums Archive
Help me with this :D IF YOU NOW PLSS - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me with this :D IF YOU NOW PLSS (/showthread.php?tid=417788)



Help me with this :D IF YOU NOW PLSS - acajoksa - 22.02.2013

Hello this is my Script Gates

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.
but i got this warning whyyyyyy PLSSSS Help meee if you now how



Re: Help me with this :D IF YOU NOW PLSS - SilverKiller - 22.02.2013

What warning?


Re: Help me with this :D IF YOU NOW PLSS - PaulDinam - 22.02.2013

Enjoy:

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.382))
{
if(lspdg == 1) { SendClientMessage(playerid, 0xFF000000, "** Vrata vec otvorena"); return 1; }
MoveObject(pdgate1,1544.6992188,-1623.8994141,13.0000000, 0);
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;
}
Had missing ) and ;


Re: Help me with this :D IF YOU NOW PLSS - acajoksa - 22.02.2013

Tnx A lots !!!!!