PARTNERI:
-UPOZORENJE-

Samo registrovani članovi mogu da vide/koriste forum u celini.
Prijavite se ili registrujte nalog na Balkan SA-MP forumu.


Autor Tema: [Pomoc] problem checkpoint  (Pročitano 31 puta)

0 članova i 1 gost pregledaju ovu temu.

Van mreže Aleksandar_Petrovic

  • Newbie
  • *
  • Poruke: 2
problem checkpoint
« poslato: Mart 26, 2020, 18:58:46 posle podne »
Problem(error/warning): Ako moze pomoc mala,napravio sam komandu za zetvu droge, kad udjem u checkpoint ne desava se nista.
Dio skripte: [ pawn ]vaš odgovor[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/qCwkWIA
 

Na mreži Fqris

Odg: problem checkpoint
« Odgovor #1 poslato: Mart 26, 2020, 19:02:12 posle podne »
pa daj kod da vidimo...
TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU
 

Van mreže Aleksandar_Petrovic

  • Newbie
  • *
  • Poruke: 2
Odg: problem checkpoint
« Odgovor #2 poslato: Mart 26, 2020, 19:10:21 posle podne »

        else if(PlayerInfo[playerid][pClan] == 8 || PlayerInfo[playerid][pLider] == 8)
{
    if(voz == parkingcar[10] || voz == parkingcar[11] || voz == parkingcar[12])
    {
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SCM(playerid,-1,""CRVENA"[D-RP] "SIVA"Morate biti na mestu vozaca da bi pokrenuli sverc!");
      if(SvercDroge[playerid] >= 1) return SCM(playerid,-1, ""CRVENA"[D-RP] "SIVA"Vec kosis drogu!");
if(!IsPlayerInRangeOfPoint(playerid, 20.0, -1100.2979,-913.6785,130.2189)) return SCM(playerid,-1,""CRVENA"[D-RP] "SIVA"Niste na mestu pokretanja sverca!");
if(PlayerInfo[playerid][pNovacDzep] < 6250) return SCM(playerid,-1,""CRVENA"[D-RP] "SIVA"Nemate dovoljno novca za sverc (6250$)");
SvercDroge[playerid] = 1; g_NovacMinus(playerid, 6250);
SetPlayerCheckpoint(playerid, -1151.1718,-1056.8019,129.2188, 10.0);
SCM(playerid,-1,""CRVENA"[The Mexican Mafia]: "BELA"Krenuli ste sa svercom,pratite checkpoint.");
}
else return SCM(playerid,-1,""CRVENA"[The Mexican Mafia]: "SIVA"Niste u kombajnu!");
}
za komandu /sverc
if(SvercDroge[playerid] == 1 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1151.1718,-1056.8019,129.2188))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1148.5101,-960.6057,129.2188, 3.0);
SvercDroge[playerid] = 2;
}
}
if(SvercDroge[playerid] == 2 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1148.5101,-960.6057,129.2188))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1153.4641,-961.1741,129.2188, 3.0);
Vrsenje[playerid] = 3;
}
}
if(SvercDroge[playerid] == 3 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1153.4641,-961.1741,129.2188))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1153.6711,-1057.9014,129.2188, 3.0);
SvercDroge[playerid] = 4;
}
}
if(SvercDroge[playerid] == 4 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1153.6711,-1057.9014,129.2188))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1159.3005,-1057.8717,129.2188, 3.0);
SvercDroge[playerid] = 5;
}
}
if(SvercDroge[playerid] == 5 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1159.3005,-1057.8717,129.2188))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1159.4943,-960.9302,129.2188, 3.0);
SvercDroge[playerid] = 6;
}
}
if(SvercDroge[playerid] == 6 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1159.4943,-960.9302,129.2188))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1165.6842,-961.5911,129.2188, 3.0);
SvercDroge[playerid] = 7;
}
}
if(SvercDroge[playerid] == 7 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1165.6842,-961.5911,129.2188))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1166.0284,-1058.1298,129.2188, 3.0);
SvercDroge[playerid] = 8;
}
}
if(SvercDroge[playerid] == 8 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1166.0284,-1058.1298,129.2188))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1172.7145,-1058.5715,129.2188, 3.0);
SvercDroge[playerid] = 9;
}
}
if(SvercDroge[playerid] == 9 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1172.7145,-1058.5715,129.2188))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1170.6782,-961.6064,129.2119, 3.0);
SvercDroge[playerid] = 10;
}
}
if(SvercDroge[playerid] == 10 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1170.6782,-961.6064,129.2119))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1179.3296,-962.0383,129.2119, 3.0);
SvercDroge[playerid] = 11;
}
}
if(SvercDroge[playerid] == 11 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1179.3296,-962.0383,129.2119))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1180.3826,-1058.1179,129.2188, 3.0);
SvercDroge[playerid] = 12;
}
}
if(SvercDroge[playerid] == 12 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1180.3826,-1058.1179,129.2188))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1188.8439,-1058.6965,129.2188, 3.0);
SvercDroge[playerid] = 13;
}
}
if(SvercDroge[playerid] == 13 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1188.8439,-1058.6965,129.2188))
{
GameTextForPlayer(playerid, "~y~Nastavite sa vrsenjem", 3000, 3);
SetPlayerCheckpoint(playerid, -1188.5183,-962.2331,129.2119, 3.0);
SvercDroge[playerid] = 14;
}
}
if(SvercDroge[playerid] == 14 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1188.5183,-962.2331,129.2119))
{
GameTextForPlayer(playerid, "~y~Krenite na istovar", 3000, 3);
SetPlayerCheckpoint(playerid, -1090.4606,-932.5192,129.2188, 5.0);
SvercDroge[playerid] = 15;
}
}
    if(SvercDroge[playerid] == 15 && CID >= parkingcar[10] && CID <= parkingcar[12] && GetPlayerState(playerid) == 2)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1090.4606,-932.5192,129.2188))
{
TogglePlayerControllable(playerid, 0);
utovar[playerid] = SetTimerEx("utovar1", 7000, false, "d", playerid);
GameTextForPlayer(playerid, "~y~istovar droge...", 5000, 3);
PlayerInfo[playerid][pDroga] += 250; SvercDroge[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SCM(playerid,-1,""CRVENA"[The Mexican Cartel]: "BELA"Zavrsili ste sverc i dobili ste 250g droge!");
}
}
ovo se desava kad igrac udje u cp.
ne pokazuje nikakve greske,samo se nista ne desava kad igrac udje u cp