Pomoc|Ulica na house labelu

Započeo dane_1, Februar 13, 2012, 17:34:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:LARP
Detaljan opis problema: Ovako,zelio bih dodati ispod ovog "prodaje se" da pise npr ULICA:LS Ganton 1,ako se moze cmd napravit kakva ja cu edit svaku kucu,samo pokusavo sam i sta god napisem samo 0 stoji -.-'
Dio skripte:
strmid(HouseInfo[idx][hStreet], dini_Get(file,"Ulica"), 0, strlen(dini_Get(file,"Ulica")), 255);
Ovo sam dodao pod LoadProperty
for(new h = 0; h < sizeof(HouseInfo); h++)
{
    if(HouseInfo[h][hSetted] == 1)
    {
if(HouseInfo[h][hOwned] == 0)
{
    if(HouseInfo[h][hSetted] == 1)
    {
    format(PropertyString,sizeof(PropertyString),"Prodaje Se!\n Ulica: %d \n ID Kuce: %d \n Cijena: $%d \n Opis: %s \n Level: %d",HouseInfo[h][hStreet], HouseInfo[h][hWorld], HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15, 0, 1);
///HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}
else if(HouseInfo[h][hOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s \n Ulica: %d\n ID Kuce: %d \n Cijena Renta: $%d \n Opis: %s \n Pisite /rentroom",HouseInfo[h][hMessage],HouseInfo[h][hOwner],HouseInfo[h][hStreet],HouseInfo[h][hWorld], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15, 0, 1);
//HousePickup[h] = CreateDynamicPickup(1272, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}
}
Dodao i ovdje
if(update == 1)
{
if(HouseInfo[id][hOwned] == 0)
{
    if(HouseInfo[id][hSetted] == 1)
    {
        Delete3DTextLabel(HouseLabel[id]);
    format(PropertyString,sizeof(PropertyString),"Kuca se Prodaje! \n ID Kuce: %d \n Cijena: $%d \n Opis: %s \n Level: %d",HouseInfo[id][hWorld], HouseInfo[id][hStreet], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
HouseLabel[id] = Create3DTextLabel(PropertyString ,0x00FF00AA,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez],25, 0, 1);
}
}
else if(HouseInfo[id][hOwned] == 1)
{
    Delete3DTextLabel(HouseLabel[id]);
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s \n ID Kuce: %d \n Rent Cijena: $%d \n Opis: %s \n Da biste rentali /rentroom", HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hStreet],HouseInfo[id][hWorld], HouseInfo[id][hRent], HouseInfo[id][hDiscription]);
HouseLabel[id] = Create3DTextLabel(PropertyString ,0x00FFFFAA,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez],25, 0, 1);
}
}
Dodao i ovdje
    dini_Set(file,"Ulica",HouseInfo[idx][hStreet]); Dodao i ovo pod hsetted
Neke slike/video za lakse dobivanje pomoci(neobavezno): Klikni me!,pazi nije virus xD,slika
EDIT:Znaci, neznam u cemu je problem,pomazite molim vas..Hvala..
Poslednja Izmena: Februar 13, 2012, 17:38:32 POSLE PODNE od dane_1

 LoadProperty

for(new h = 0; h < sizeof(HouseInfo); h++)
{
    if(HouseInfo[h][hSetted] == 1)
    {
if(HouseInfo[h][hOwned] == 0)
{
    if(HouseInfo[h][hSetted] == 1)
    {
    format(PropertyString,sizeof(PropertyString),"Prodaje Se!\n Ulica: %s \n ID Kuce: %d \n Cijena: $%d \n Opis: %s \n Level: %d",HouseInfo[h][hStreet], HouseInfo[h][hWorld], HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15, 0, 1);
///HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}
else if(HouseInfo[h][hOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s \n Ulica: %s\n ID Kuce: %d \n Cijena Renta: $%d \n Opis: %s \n Pisite /rentroom",HouseInfo[h][hMessage],HouseInfo[h][hOwner],HouseInfo[h][hStreet],HouseInfo[h][hWorld], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15, 0, 1);
//HousePickup[h] = CreateDynamicPickup(1272, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}
}




if(update == 1)
{
if(HouseInfo[id][hOwned] == 0)
{
    if(HouseInfo[id][hSetted] == 1)
    {
        Delete3DTextLabel(HouseLabel[id]);
    format(PropertyString,sizeof(PropertyString),"Kuca se Prodaje! \n ID Kuce: %s \n Cijena: $%d \n Opis: %s \n Level: %d",HouseInfo[id][hWorld], HouseInfo[id][hStreet], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
HouseLabel[id] = Create3DTextLabel(PropertyString ,0x00FF00AA,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez],25, 0, 1);
}
}
else if(HouseInfo[id][hOwned] == 1)
{
    Delete3DTextLabel(HouseLabel[id]);
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s \n ID Kuce: %s \n Rent Cijena: $%d \n Opis: %s \n Da biste rentali /rentroom", HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hStreet],HouseInfo[id][hWorld], HouseInfo[id][hRent], HouseInfo[id][hDiscription]);
HouseLabel[id] = Create3DTextLabel(PropertyString ,0x00FFFFAA,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez],25, 0, 1);
}
}


:D samo si trebao zamjenit %d sa %s :)

%b     Inserts a number at this position in binary radix
%c     Inserts a single character.
%d     Inserts an integer (whole) number
%f     Inserts a floating point number.
%i     Inserts an integer.
%s     Inserts a string.
%x     Inserts a number in hexadecimal notation.
%%     Inserts the literal '%'

Ma daj nemoj me jebat -.-' omg ja i komande izbriso sto sam pravio  :'(,testat cu za 10-tak min ,nesto radim sada pa javim,ako uspijem ima da te castim xD

Sry DP AL SJEBO SI ME,sad su mi se SVE KUCE IZBRISALE STO SU BILE -.-'  :'(


Nevrjedi,iz mape properties se izbrtisalo sve,oko 250 kuca -.-'
EDIT :Sreca,imo sam kopiju jedva sam je naso :P
Poslednja Izmena: Februar 13, 2012, 18:45:11 POSLE PODNE od dane_1

*REFRESH,kako napraviti komandu da editam ingame a ne da moram preko FTP-a -.-',odnosno u server mapi