[Pomoć] Kapija na otvaranje

Započeo Djuro_Guzijan
31. Jul 2014. Zaključano
215
pregleda
7
postova
Vlado_Malinovic
3
Wheel Man
31. Jul 2014.
Skripta koju koristim: Od 0 sa nekog tutorijala na netu
Detaljan opis problema: Izabcuje mi jedan eror, tražio sam na netu i nisam našao kako da popravim. (Problem je na kraju })
Dio skripte:
                Gate=CreateObject(Gate, 2462.535156, 1653.684204, 12.471565, 0, 0, 0);

                return 1;

}
public OnPlayerCommandText(playerid, cmdtext[])

{

                if (strcmp("/gotogf, cmdtext, true, 10) ==0) //open gate"
               
{

Neke slike/video za lakse dobivanje pomoci(neobavezno):
James_SmithXDl
6
OG Legend
31. Jul 2014.
daj citav kod.
Vlado_Malinovic
3
Wheel Man
31. Jul 2014.
#include 

#include

#pragma tabsize 0

new Gate;

public OnFilterScriptInit()
{

                Gate=CreateObject(Gate, 2462.535156, 1653.684204, 12.471565, 0, 0, 0);

                return 1;

}
public OnPlayerCommandText(playerid, cmdtext[])

{

                if (strcmp("/gotogf, cmdtext, true, 10) ==0) //open gate"
               
{

                MoveObject(Gate, 2462.360840, 1662.142456, 12.471565, 4);
                SendClientMessage(playerid, 0xFF66FFFF,"Otvorio si kapiju."); //----you can change this message to anything of your choice

                return 1;
               
}
if (strcmp("/closegroove", cmdtext, true, 10) ==0) //----you can change "/close" to anything of your choice
            {
                MoveObject(Gate, 2462.535156, 1653.684204, 12.471565, 4);

                SendClientMessage(playerid, 0xFF66FFFF,"Zatvorio si kapiju."); //----you can change this message to anything of your choice

                return 1;
               
}
                return 0;

}
James_SmithXDl
6
OG Legend
31. Jul 2014.
#include 

#include

#pragma tabsize 0

new Gate;

public OnFilterScriptInit()
{

                Gate = CreateObject(Gate, 2462.535156, 1653.684204, 12.471565, 0, 0, 0);

                return 1;

}
public OnPlayerCommandText(playerid, cmdtext[])
{

                if (strcmp("/gotogf", cmdtext, true, 10) == 0")
{
                MoveObject(Gate, 2462.360840, 1662.142456, 12.471565, 4);
                SendClientMessage(playerid, 0xFF66FFFF,"Otvorio si kapiju."); //----you can change this message to anything of your choice
}
                if (strcmp("/closegroove", cmdtext, true, 10) ==0) //----you can change "/close" to anything of your choice
                {
                MoveObject(Gate, 2462.535156, 1653.684204, 12.471565, 4);
                SendClientMessage(playerid, 0xFF66FFFF,"Zatvorio si kapiju."); //----you can change this message to anything of your choice
}
                return 0;

}

probaj
Vlado_Malinovic
3
Wheel Man
31. Jul 2014.
Neće

James_SmithXDl
6
OG Legend
31. Jul 2014.


#include

#pragma tabsize 0

new Gate;

public OnFilterScriptInit()
{

                Gate = CreateObject(Gate, 2462.535156, 1653.684204, 12.471565, 0, 0, 0);

                return 1;

}
public OnPlayerCommandText(playerid, cmdtext[])
{

                if (strcmp("/gotogf", cmdtext, true, 10) == 0)
{
                MoveObject(Gate, 2462.360840, 1662.142456, 12.471565, 4);
                SendClientMessage(playerid, 0xFF66FFFF,"Otvorio si kapiju."); //----you can change this message to anything of your choice
}
                if (strcmp("/closegroove", cmdtext, true, 10) ==0) //----you can change "/close" to anything of your choice
                {
                MoveObject(Gate, 2462.535156, 1653.684204, 12.471565, 4);
                SendClientMessage(playerid, 0xFF66FFFF,"Zatvorio si kapiju."); //----you can change this message to anything of your choice
}
                return 0;

}
Vlado_Malinovic
3
Wheel Man
31. Jul 2014.
Hvala, kompilovao sam  🙂
Jel' ima ovde tut kako se ovo ubacuje?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha