Biznis ulaz/izlaz

Započeo fiu, Maj 22, 2020, 15:16:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

fiu

*

Problem(error/warning): udjes u biznis ali kad izadzes daje te na izlaz prve kreirane biznis od tog vrsta primer napravim 3 gunshop i sad udjem u 3 a izlaz mi daje u 1, o cemu je prob
Dio skripte:
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Slika/video ingame problema(obavezno ako je ingame problem)

[pawn]
         for(new i; i < MAX_BIZNISI; i++)
         {
            if(IsPlayerInRangeOfPoint(playerid, 3.0, BIZNIS_ENUM[bUlazX], BIZNIS_ENUM[bUlazY], BIZNIS_ENUM[bUlazZ]))
            {
               if(UlaziIzlazi[playerid] == 1) return 1;
               if(BIZNIS_ENUM[bZatvoreno] == 1) return GRESKA(playerid, "Biznis zakljucan.");
               if(BIZNIS_ENUM[bVrsta] == VRSTA_DISCO || BIZNIS_ENUM[bVrsta] == VRSTA_STRIPTIZCLUB)
               {
                  if(PLAYER_ENUM[playerid][pPoseduvanje_Biznis] != i)
                  {
                     if(PLAYER_ENUM[playerid][pNovac] < BIZNIS_ENUM[bCena_Vlez]) return GRESKA(playerid, "Nemate dovolno para za ulaz u ovog biznisu.");
                     Biznis_MoneyPlus(i, BIZNIS_ENUM[bCena_Vlez]);
                     g_NovacMinus(playerid, BIZNIS_ENUM[bCena_Vlez]);
                  }
               }
               Ucitavanje_Ulaza(playerid);
               SetPlayerVirtualWorld(playerid, BIZNIS_ENUM[bVW]);
               SetPlayerInterior(playerid, BIZNIS_ENUM[bInterior]);
               g_SetPlayerPos_g(playerid, BIZNIS_ENUM[bIzlazX], BIZNIS_ENUM[bIzlazY], BIZNIS_ENUM[bIzlazZ]);
               Vlegol_Biznis[playerid] = i;
               break;
            }
            if(IsPlayerInRangeOfPoint(playerid, 3.0, BIZNIS_ENUM[bIzlazX], BIZNIS_ENUM[bIzlazY], BIZNIS_ENUM[bIzlazZ]) && GetPlayerVirtualWorld(playerid) == BIZNIS_ENUM[bVW])
            {
               if(UlaziIzlazi[playerid] == 1) return 1;
               Ucitavanje_Ulaza(playerid);
               SetPlayerVirtualWorld(playerid, 0);
               SetPlayerInterior(playerid, 0);
               g_SetPlayerPos_g(playerid, BIZNIS_ENUM[bUlazX], BIZNIS_ENUM[bUlazY], BIZNIS_ENUM[bUlazZ]);
               Vlegol_Biznis[playerid] = -1;
               break;
            }
         }
[/pawn]

Kako spremaš biz VW?
Citat: CheezItFollow your heart and own style.
Citat: PottusThat is perfectly fine, I'm just pointing out where you made mistakes what does hearing "good job" get you? Absolutely nothing. You need to hear the problems otherwise you'll keep making the same mistakes :)

fiu

*

[pawn]SetPlayerVirtualWorld(playerid, BIZNIS_ENUM[bVW]);[/pawn] kad udje u biznis

Nepitam za to, nego kako spremaš virtual world? Je li on uvijek isti ili kako?
Citat: CheezItFollow your heart and own style.
Citat: PottusThat is perfectly fine, I'm just pointing out where you made mistakes what does hearing "good job" get you? Absolutely nothing. You need to hear the problems otherwise you'll keep making the same mistakes :)

fiu

*

Citat: Shadow. poslato Maj 22, 2020, 21:59:53 POSLE PODNE
Nepitam za to, nego kako spremaš virtual world? Je li on uvijek isti ili kako?
brate editiram UP mod neznam gde da pronajdem sta tocno da ti dam

fiu

*

skonto sam kad kreiram biznis nema da definise bVW

[pawn]BIZNIS_ENUM[Biznis_ID][bVW] = Biznis_ID;[/pawn]

fix lock, hvala brate