label se ne zeli kreirati

Započeo L Ц K Q, Novembar 18, 2021, 15:44:38 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): kada kreiram stan ne stvori mi se label (oznacit cu ga na dijelu skripte)
Deo skripte: [pawn]YCMD:kreirajstan(playerid, params[],help)
{
   #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"M:RP | "SPLAVA"Moras biti log-inovan kako bi koristio komande!");
   if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid,-1,""SPLAVA"[M:RP] "SIVA"Nisi ovlascen!");
   if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""SPLAVA"[M:RP] "SIVA"Morate biti na admin duznosti!");
   new idstan,level,cena,sstan[80],string[500]; GetPlayerPos(playerid,X,Y,Z);
   if(sscanf(params, "iii",idstan,level,cena)) return SCM(playerid,-1,""SPLAVA"M:RP Pomoc | "SIVA"/kreirajstan [ID] [Level] [Cena]");
    if(idstan >= MAX_STANOVA) return SCM(playerid,-1, ""SPLAVA"M:RP | "SIVA"Maximum stanova je ogranicen ne mozes koristiti taj ID!");
   format(sstan, sizeof(sstan), STAN_FILE, idstan);
   if(fexist(sstan)) return SCM(playerid,-1, "M:RP | "SPLAVA"ID tog stana vec postoji!");
   StanInfo[idstan][sIzlazX] = 244.1522; StanInfo[idstan][sIzlazY] = 305.0730; StanInfo[idstan][sIzlazZ] = 999.1484; StanInfo[idstan][sInt] = 1;
   StanInfo[idstan][sCena] = cena; StanInfo[idstan][sLevel] = level; StanInfo[idstan][sUlazX] = X;
    StanInfo[idstan][sUlazY] = Y; StanInfo[idstan][sUlazZ] = Z; StanInfo[idstan][sProveraVlasnika] = 0;
    StanInfo[idstan][sNovac] = 0; StanInfo[idstan][sZatvoreno] = 1; StanInfo[idstan][sVW] = idstan;
    StanInfo[idstan][sOruzije] = -1; StanInfo[idstan][sMunicija] = 0;
    strmid(StanInfo[idstan][sVlasnik],"Niko",0,strlen("Niko"),255);
   format(string,sizeof(string),""SPLAVA"[ STAN NA PRODAJU ]!\nCena: "BELA"%d$\n"SPLAVA"Level: "BELA"%d\n"SPLAVA"Za kupovinu /kupistan",StanInfo[idstan][sCena], StanInfo[idstan][sLevel]); // OVAJ TU LABEL SE NE KREIRA
   StanLabel[idstan] = CreateDynamic3DTextLabel(string ,0x33CCFFAA,StanInfo[idstan][sUlazX], StanInfo[idstan][sUlazY], StanInfo[idstan][sUlazZ],25,0,1);
   StanPickup[idstan] = CreateDynamicPickup(19134, 1, StanInfo[idstan][sUlazX], StanInfo[idstan][sUlazY], StanInfo[idstan][sUlazZ]);
   SCMF(playerid,-1,""SPLAVA"[M:RP] "SIVA"Stan je uspesno kreiran (ID Stana: %d)!",idstan);
   SacuvajStan(idstan);
   return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //

Kreira li se pickup?

[Filterscript] Simple Treasure Hunt
[Filterscript] Sistem pecanja
[Filterscript] Meditacija
[Filterscript] Molitva
[Include] Alarm
[Include] Posao Taxi


Neće se ni kreirati, pogledaj parametre posle 25 što je distanca, attach si na igrača ID 0, a vozilo 1

Evo funkcija
[Pawn]CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_3D_TEXT_LABEL_SD, areaid = -1, priority = 0);[/pawn]

Citat: мυмα poslato Novembar 18, 2021, 17:13:46 POSLE PODNE
Neće se ni kreirati, pogledaj parametre posle 25 što je distanca, attach si na igrača ID 0, a vozilo 1

Evo funkcija
[Pawn]CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_3D_TEXT_LABEL_SD, areaid = -1, priority = 0);[/pawn]

nisam skontao

Zamijeni svoju liniju sa ovom

[pawn]StanLabel[idstan] = CreateDynamic3DTextLabel(string, 0x33CCFFAA, StanInfo[idstan][sUlazX], StanInfo[idstan][sUlazY], StanInfo[idstan][sUlazZ], 25.0);[/pawn]