FCNPC - OnPlayerCheckpoint

Započeo xLanmi, April 24, 2019, 00:14:36 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Pokusao sam da uradim Onplayercheckpoint posto mi treba za sistem hocu da napravim sa FCNPC-om ali iz nekog razloga ne radi ali obican NPC radi , da li mozda STREAMER nema podrsku FCNPC ili postoji neka caka?
Dio skripte:
Komanda kojom kreiram
[pawn]CMD:spawnujbota(playerid, params[], help) {
   new Float:X, Float:Y, Float:Z;
   GetPlayerPos(playerid, X, Y, Z);
   NPCBOT[0] = CreateFCNPC("Dzoni");
   FCNPC_Spawn( NPCBOT[0], 294, X, Y,180);
   FCNPC_SetVirtualWorld(  NPCBOT[0], 0);
   FCNPC_SetInterior(  NPCBOT[0], 0);
   FCNPC_PutInVehicle( NPCBOT[0], MyFirstNPCVehicle, 0);
   FCNPC_StartPlayingPlayback(NPCBOT[0], "testamobota");
   MozeNamSe(NPCBOT[0]);
   return true;
}


stock CreateFCNPC(npcname[]) {
   new npcid = FCNPC_Create(npcname);
   return npcid;
}[/pawn]

OnPlayerEnterCheckpoint
[pawn]
public OnPlayerEnterCheckpoint(playerid) {
   if(IsPlayerNPC(playerid)) {
      if(CPtest[playerid] > 0) {
         if(CPtest[playerid] == 1) {
            printf(" Rocky je prosao");
         }
      }
   }
}[/pawn]

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): //

One And Only
Old Member
Since AVGUST 2013. :)
GAME OVER - SCRIPTING
SINCE 2009 - 2020

[pawn]printf(" Rocky nije prosao");[/pawn] :D

Citat: ã,¼ãƒ­ãƒ,,ーScripTT.sql poslato April 24, 2019, 00:18:57 PRE PODNE
[pawn]printf(" Rocky nije prosao");[/pawn] :D

Posle svih napora, ipak Rocky nije prosao - ali zasto ?

One And Only
Old Member
Since AVGUST 2013. :)
GAME OVER - SCRIPTING
SINCE 2009 - 2020

Pasting code from the Internet into production code is like chewing gum found in the street.

Also known as:Marshall Bleach Newton





Citat: livinglikearockstar poslato April 24, 2019, 09:23:08 PRE PODNE
jel mu CPtest[playerid] == 1?
Da , ali bukv nece dok obican NPC kroz istu funkciju hoce - mislim da streamer ne podrzava takvog npc-a nema druge hmm

One And Only
Old Member
Since AVGUST 2013. :)
GAME OVER - SCRIPTING
SINCE 2009 - 2020

Citat: LANMY.pwN poslato April 24, 2019, 12:55:32 POSLE PODNE
Da , ali bukv nece dok obican NPC kroz istu funkciju hoce - mislim da streamer ne podrzava takvog npc-a nema druge hmm

A jesi li update streamer?
Pasting code from the Internet into production code is like chewing gum found in the street.

Also known as:Marshall Bleach Newton




Citat: É´á´¡É´ poslato April 24, 2019, 13:14:34 POSLE PODNE
A jesi li update streamer?

Sve imam najnovije.

One And Only
Old Member
Since AVGUST 2013. :)
GAME OVER - SCRIPTING
SINCE 2009 - 2020

Citat: LANMY.pwN poslato April 24, 2019, 12:55:32 POSLE PODNE
Da , ali bukv nece dok obican NPC kroz istu funkciju hoce - mislim da streamer ne podrzava takvog npc-a nema druge hmm
Postavi na oficijalnom samp forumu, ovdje niko ne koristi NPCove osim Dragona koliko znam msm nisam vidio ni na jednom srw

Probaj odraditi "debug" bez ove varijable, ako radi onda nisi lepo odradio setovanje varijable, mislim na varijablu "CPtest"