Negocios informaciムハ 3dtextlabel - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Espaテアol/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Negocios informaciムハ 3dtextlabel (
/showthread.php?tid=306001)
Negocios informaciムハ 3dtextlabel -
aRvaroMetal - 24.12.2011
Bueno, os cuento, llevo un dミスa entero liado con esto, cambiando poco a poco y me duele la cabeza.
Ahora mismo, donde lo dejミケ, ocurre esto:
Entras al servidor y ves el 3dtextlabel del negocio pero sムネo el nombre, el bMessage. Pongo /comprarlocal y ya se ve bien todo el 3dtextlabel y cuando lo vendo /venderlocal tambiミケn aparece bien, incluso cuando le cambio el nombre.
El problema es que sムネo va con el primer negocio, con el negocio id 0, el resto no van...
Necesito ayuda, ya es tema de salud mental.
ミ墟セミエ:
new BizzInfo[3][bInfo];
Bizz.cfg:
0|The State|Supermercado|No-one|1833.707275|-1842.205078|13.578100|-31.129898|-92.010498|1003.546875|8|350000|10|0|0|18|2180|5000|6
0|The State|David's Pizza|No-one|2105.488281|-1806.280761|13.554697|372.411712|-130.457702|1001.492187|8|350000|10|0|1|5|2180|5000|6
0|The State|Armerミスa|No-one|2070.106445|-1785.347656|13.554698|316.524993|-167.707000|999.593811|8|350000|10|0|1|6|2180|5000|6
OnPropTextdrawUpdate:
public OnPropTextdrawUpdate(update, id)
{
new PropertyString[256];
if(update == 2)
{
if(BizzInfo[id][bOwned] == 0)
{
Delete3DTextLabel(NegocioLabel[id]);
format(PropertyString,sizeof(PropertyString),"[Negocio en venta] \n %s \nPrecio: $%d \n Nivel: %d \n Usa /ComprarLocal",BizzInfo[id][bMessage], BizzInfo[id][bBuyPrice], BizzInfo[id][bLevelNeeded]);
NegocioLabel[id] = Create3DTextLabel(PropertyString ,0xFFFF00AA,BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ],50, 0, 1);
}
else if(BizzInfo[id][bOwned] == 1)
{
Delete3DTextLabel(NegocioLabel[id]);
format(PropertyString,sizeof(PropertyString)," %s \n Dueム{: %s \n Extorsiムハ: %s \n Entrada: $%d \n Usa /entrar",BizzInfo[id][bMessage],BizzInfo[id][bOwner], BizzInfo[id][bExtortion], BizzInfo[id][bEntranceCost]);
NegocioLabel[id] = Create3DTextLabel(PropertyString ,0xFFFF00AA,BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ],50, 0, 1);
}
}
return 1;
}
(No sミケ quミケ mミアs agregaros al code)