Pawno Crashuje

Započeo ghost1337
2. Avg. 2018.
315
pregleda
2
postova
Leon Wake
3
Hustler
2. Avg. 2018.
Problem(error/warning): Zavrsio sam ovaj kod u gamemodu. I kreno kompajlat nije sekunda prosla odma mi je kreso pawno. Kopiram u filescriptu i ajde reko da vidim ono kako ce to funkcionisat, nije izbacilo niti jedan error na kodu, sve oke mi je odradilo.
Dio skripte:

new Text:MIS2BOX;
new Text:MIS2BOX2;
new Text:MIS2ICA;
new Text:MIS2BRMIS;
new Text:MIS2POTRRANK;
new Text:MIS2ATENTSA;
new Text:MIS2NAGRADA;
new Text:MIS2OPIS;
new Ubistvo;
new Actor0;
new Actor1;
#define DIALOG_UBISTVO 26
#define FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" misija");
print("--------------------------------------\n");

   
MIS2BOX = TextDrawCreate(662.500000, 1.500000, "usebox");
TextDrawLetterSize(MIS2BOX, 0.000000, 15.825000);
TextDrawTextSize(MIS2BOX, -2.000000, 0.000000);
TextDrawAlignment(MIS2BOX, 1);
TextDrawColor(MIS2BOX, 0);
TextDrawUseBox(MIS2BOX, true);
TextDrawBoxColor(MIS2BOX, 102);
TextDrawSetShadow(MIS2BOX, 0);
TextDrawSetOutline(MIS2BOX, 0);
TextDrawFont(MIS2BOX, 0);

MIS2BOX2 = TextDrawCreate(738.000000, 298.562500, "usebox");
TextDrawLetterSize(MIS2BOX2, 0.000000, 17.405559);
TextDrawTextSize(MIS2BOX2, -2.000000, 0.000000);
TextDrawAlignment(MIS2BOX2, 1);
TextDrawColor(MIS2BOX2, 0);
TextDrawUseBox(MIS2BOX2, true);
TextDrawBoxColor(MIS2BOX2, 102);
TextDrawSetShadow(MIS2BOX2, 0);
TextDrawSetOutline(MIS2BOX2, 0);
TextDrawFont(MIS2BOX2, 0);

MIS2ICA = TextDrawCreate(155.500000, 10.937500, "International Contract Agency");
TextDrawLetterSize(MIS2ICA, 0.449999, 1.600000);
TextDrawAlignment(MIS2ICA, 1);
TextDrawColor(MIS2ICA, -1);
TextDrawSetShadow(MIS2ICA, 0);
TextDrawSetOutline(MIS2ICA, 1);
TextDrawBackgroundColor(MIS2ICA, 51);
TextDrawFont(MIS2ICA, 2);
TextDrawSetProportional(MIS2ICA, 1);

MIS2BRMIS = TextDrawCreate(4.000000, 48.562500, "MISIJA BR: 1");
TextDrawLetterSize(MIS2BRMIS, 0.449999, 1.600000);
TextDrawAlignment(MIS2BRMIS, 1);
TextDrawColor(MIS2BRMIS, -1);
TextDrawSetShadow(MIS2BRMIS, 0);
TextDrawSetOutline(MIS2BRMIS, 1);
TextDrawBackgroundColor(MIS2BRMIS, 51);
TextDrawFont(MIS2BRMIS, 3);
TextDrawSetProportional(MIS2BRMIS, 1);

MIS2POTRRANK = TextDrawCreate(4.500000, 62.125000, "POTREBAN RANK: 1");
TextDrawLetterSize(MIS2POTRRANK, 0.449999, 1.600000);
TextDrawAlignment(MIS2POTRRANK, 1);
TextDrawColor(MIS2POTRRANK, -1);
TextDrawSetShadow(MIS2POTRRANK, 0);
TextDrawSetOutline(MIS2POTRRANK, 1);
TextDrawBackgroundColor(MIS2POTRRANK, 51);
TextDrawFont(MIS2POTRRANK, 3);
TextDrawSetProportional(MIS2POTRRANK, 1);

MIS2ATENTSA = TextDrawCreate(4.000000, 74.812500, "IZVRSITI ATENTAT SA: SNAJPEROM.");
TextDrawLetterSize(MIS2ATENTSA, 0.449999, 1.600000);
TextDrawAlignment(MIS2ATENTSA, 1);
TextDrawColor(MIS2ATENTSA, -1);
TextDrawSetShadow(MIS2ATENTSA, 0);
TextDrawSetOutline(MIS2ATENTSA, 1);
TextDrawBackgroundColor(MIS2ATENTSA, 51);
TextDrawFont(MIS2ATENTSA, 3);
TextDrawSetProportional(MIS2ATENTSA, 1);

MIS2NAGRADA = TextDrawCreate(3.500000, 87.937500, "NAGRADA: 10000$ + 2 ORG H.");
TextDrawLetterSize(MIS2NAGRADA, 0.449999, 1.600000);
TextDrawAlignment(MIS2NAGRADA, 1);
TextDrawColor(MIS2NAGRADA, -1);
TextDrawSetShadow(MIS2NAGRADA, 0);
TextDrawSetOutline(MIS2NAGRADA, 1);
TextDrawBackgroundColor(MIS2NAGRADA, 51);
TextDrawFont(MIS2NAGRADA, 3);
TextDrawSetProportional(MIS2NAGRADA, 1);

MIS2OPIS = TextDrawCreate(64.000000, 416.937500, "POTREBNO JE PRATITI CHECKPOINTE, TE CETE DOBIVATI DALJE UPUTE!");
TextDrawLetterSize(MIS2OPIS, 0.449999, 1.600000);
TextDrawAlignment(MIS2OPIS, 1);
TextDrawColor(MIS2OPIS, -1);
TextDrawSetShadow(MIS2OPIS, 0);
TextDrawSetOutline(MIS2OPIS, 1);
TextDrawBackgroundColor(MIS2OPIS, 51);
TextDrawFont(MIS2OPIS, 3);
TextDrawSetProportional(MIS2OPIS, 1);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
   
if(PlayerToPoint(1.0,playerid,2812.5122,-1433.4901,24.1940))
{
    if(Ubistvo == 1)
    {
        SendClientMessage(playerid,0xFF4500AA,"MISIJA:Udite u automobil te pratite idite do sljedeceg markera da pokupite oruzje");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1562.4657,-1358.6342,329.4535, 1.0);
    }
}
//
if(PlayerToPoint(1.0,playerid,1562.4657,-1358.6342,329.4535))
{
    if(Ubistvo == 1)
    {
            Ubistvo = 2;
SendClientMessage(playerid,0xFF4500AA,"MISIJA:Idite do sljedeceg markera za sljedece upute.");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1148.8673,-1209.8894,18.9142, 5.0);
    }
}
//
if(PlayerToPoint(5.0,playerid,1148.8673,-1209.8894,18.9142))
{
if(Ubistvo == 2)
    {
        SendClientMessage(playerid,0xFF4500AA,"MISIJA:Izadite iz automobila, te pratite marker");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1121.2119,-1194.6693,32.0313, 1.0);
    }
}
if(PlayerToPoint(1.0,playerid,1121.2119,-1194.6693,32.0313))
{
if(Ubistvo == 2)
    {
        SendClientMessage(playerid,0xFF4500AA,"MISIJA:Dodite do sljedeceg markera te cete dobiti zadnje upute");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1142.1506,-1160.6189,32.0275, 1.0);
    }
}
if(PlayerToPoint(1.0,playerid,1142.1506,-1160.6189,32.0275))
{
if(Ubistvo == 2)
    {
        SendClientMessage(playerid,0xFF4500AA,"MISIJA:Izvadite snajper te pucajte u osobu sa sljedecim opisom:");
        SendClientMessage(playerid,0xFF4500AA,"OPIS METE:Osoba nosi plave farmerice.");
        SendClientMessage(playerid,0xFF4500AA,"OPIS METE:Osoba nosi bijelu duksericu.");
        SendClientMessage(playerid,0xFF4500AA,"OPIS METE:Osoba ne nosi bijele patike.");
        SendClientMessage(playerid,0xFF4500AA,"OPIS METE:Osoba ima bijelu kapicu na glavi.");
Actor0 = CreateActor(2, 1120.8765,-1131.1963,23.8281, 180.0);
Actor1 = CreateActor(3, 1123.4508,-1130.5938,23.8111, 0);
ApplyActorAnimation(Actor0, "MISC", "Seat_talk_01", 4.1, 1, 0, 0, 0, 0); // Pay anim
SetActorHealth(Actor0, 100.0);
ApplyActorAnimation(Actor1, "MISC", "Seat_talk_01", 4.1, 1, 0, 0, 0, 0); // Pay anim
DisablePlayerCheckpoint(playerid);
    }
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   
if(dialogid == DIALOG_UBISTVO)
{
if(!response) return SendClientMessage(playerid,0xE8C400FF,"MISIJA: Odustali ste od pokretanja misije!");
{

    TextDrawHideForPlayer(playerid, MIS2BOX);
TextDrawHideForPlayer(playerid, MIS2BOX2);
TextDrawHideForPlayer(playerid, MIS2ICA);
TextDrawHideForPlayer(playerid, MIS2BRMIS);
TextDrawHideForPlayer(playerid, MIS2POTRRANK);
TextDrawHideForPlayer(playerid, MIS2ATENTSA);
TextDrawHideForPlayer(playerid, MIS2NAGRADA);
TextDrawHideForPlayer(playerid, MIS2OPIS);

}
if(response)
{
SendClientMessage(playerid,0xE8C400FF,"MISIJA: Zapoceli ste misiju, izadite iz baze te krenite na oznaceni marker!");
    Ubistvo = 1;
TextDrawHideForPlayer(playerid, MIS2BOX);
TextDrawHideForPlayer(playerid, MIS2BOX2);
TextDrawHideForPlayer(playerid, MIS2ICA);
TextDrawHideForPlayer(playerid, MIS2BRMIS);
TextDrawHideForPlayer(playerid, MIS2POTRRANK);
TextDrawHideForPlayer(playerid, MIS2ATENTSA);
TextDrawHideForPlayer(playerid, MIS2NAGRADA);
TextDrawHideForPlayer(playerid, MIS2OPIS);
CreateVehicle(550,2816.8999000,-1427.9000000,16.2000000,120.0000000,45,58,15); //Sunrise
SetPlayerCheckpoint(playerid,2812.5122,-1433.4901,24.1940,1.0);
}
}
return 1;
}
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}

forward OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart);
public OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart)
{
    SetActorHealth(Actor0, 50.0);
ClearActorAnimations(Actor0);
ClearActorAnimations(Actor1);
ApplyActorAnimation(Actor0, "SWEET", "Sweet_injuredloop", 4.1, 1, 0, 0, 0, 0); // Pay anim
ApplyActorAnimation(Actor1, "CRACK", "crckdeth1", 4.1, 1, 0, 0, 0, 0);
    return 1;
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Slika/video ingame problema(obavezno ako je ingame problem):
Leon Wake
3
Hustler
2. Avg. 2018.
Fixo sam izvinite izbrisite temu (ne spamam) stvarno nisam mogo ukopcat do cega mi je bilo jer sam kod ispiso uredno.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha