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, BIZNIS_ENUM, BIZNIS_ENUM))
{
if(UlaziIzlazi == 1) return 1;
if(BIZNIS_ENUM == 1) return GRESKA(playerid, "Biznis zakljucan.");
if(BIZNIS_ENUM == VRSTA_DISCO || BIZNIS_ENUM == VRSTA_STRIPTIZCLUB)
{
if(PLAYER_ENUM != i)
{
if(PLAYER_ENUM < BIZNIS_ENUM) return GRESKA(playerid, "Nemate dovolno para za ulaz u ovog biznisu.");
Biznis_MoneyPlus(i, BIZNIS_ENUM);
g_NovacMinus(playerid, BIZNIS_ENUM);
}
}
Ucitavanje_Ulaza(playerid);
SetPlayerVirtualWorld(playerid, BIZNIS_ENUM);
SetPlayerInterior(playerid, BIZNIS_ENUM);
g_SetPlayerPos_g(playerid, BIZNIS_ENUM, BIZNIS_ENUM, BIZNIS_ENUM);
Vlegol_Biznis = i;
break;
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, BIZNIS_ENUM, BIZNIS_ENUM, BIZNIS_ENUM) && GetPlayerVirtualWorld(playerid) == BIZNIS_ENUM)
{
if(UlaziIzlazi == 1) return 1;
Ucitavanje_Ulaza(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
g_SetPlayerPos_g(playerid, BIZNIS_ENUM, BIZNIS_ENUM, BIZNIS_ENUM);
Vlegol_Biznis = -1;
break;
}
}
