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)

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

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

*

SetPlayerVirtualWorld(playerid, BIZNIS_ENUM[i][bVW]);
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

BIZNIS_ENUM[Biznis_ID][bVW] = Biznis_ID;


fix lock, hvala brate