for(new c = 0; c < MAX_CASAS; c++) { format(string, sizeof(string), "/Casas/casa%d.ini", c); if(dini_Exists(string)){ if(pickupid == dini_Int(string, "Id")){ if(dini_Int(string, "TDono") == 1){ format(STRX, sizeof(STRX), "~w~~h~]Casa]~n~~p~~h~Dono:~w~%s~n~~r~~h~ENTER", dini_Get(string, "Dono")); GameTextForPlayer(playerid, STRX, 5000, 5); //format(STRX, sizeof(STRX), "Dono da casa: %s, Pagou nela: R$%d", dini_Get(string, "Dono"), dini_Int(string, "Preco")); //SendClientMessage(playerid, Azul, STRX); } else { //format(STRX, sizeof(STRX), "Casa a venda, Valor de compra: R$%d, use /comprarcasa", dini_Int(string, "Preco")); //SendClientMessage(playerid, Verde, STRX); format(STRX, sizeof(STRX), "~w~~h~]Casa]~n~~p~~h~Dono:~w~~h~Ninguem~n~~p~~h~Valor:~g~~h~R$%d~n~~g~~h~/comprarcasa~n~~r~ENTER", dini_Int(string, "Preco")); GameTextForPlayer(playerid, STRX, 5000, 5); } } } }
Como faзo para isso virar 3DtextLabel ? Eu ja tentei mas fica um por cima do outro ...
Code:
for(new c = 0; c < MAX_CASAS; c++) { format(string, sizeof(string), "/Casas/casa%d.ini", c); if(dini_Exists(string)){ if(pickupid == dini_Int(string, "Id")){ if(dini_Int(string, "TDono") == 1){ format(STRX, sizeof(STRX), "~w~~h~]Casa]~n~~p~~h~Dono:~w~%s~n~~r~~h~ENTER", dini_Get(string, "Dono")); GameTextForPlayer(playerid, STRX, 5000, 5); //format(STRX, sizeof(STRX), "Dono da casa: %s, Pagou nela: R$%d", dini_Get(string, "Dono"), dini_Int(string, "Preco")); //SendClientMessage(playerid, Azul, STRX); } else { //format(STRX, sizeof(STRX), "Casa a venda, Valor de compra: R$%d, use /comprarcasa", dini_Int(string, "Preco")); //SendClientMessage(playerid, Verde, STRX); format(STRX, sizeof(STRX), "~w~~h~]Casa]~n~~p~~h~Dono:~w~~h~Ninguem~n~~p~~h~Valor:~g~~h~R$%d~n~~g~~h~/comprarcasa~n~~r~ENTER", dini_Int(string, "Preco")); GameTextForPlayer(playerid, STRX, 5000, 5); } } } } |
for(new c = 0; c < MAX_CASAS; c++)
{
format(string, sizeof(string), "/Casas/casa%d.ini", c);
if(dini_Exists(string))
{
if(pickupid == dini_Int(string, "Id"))
{
if(dini_Int(string, "TDono") == 1)
{
new Float:iconx;
new Float:icony;
new Float:iconz;
new string[128];
format(string, sizeof(string), "~w~~h~]Casa]~n~~p~~h~Dono:~w~%s~n~~r~~h~ENTER", dini_Get(string, "Dono"));
Create3DTextLabel(string, 0xFFFFFFAA, iconX, iconY, iconZ+0.80, 20.0, 0, 1);
}
else
{
new string[128];
format(string, sizeof(string), "~w~~h~]Casa]~n~~p~~h~Dono:~w~~h~Ninguem~n~~p~~h~Valor:~g~~h~R$%d~n~~g~~h~/comprarcasa~n~~r~ENTER", dini_Int(string, "Preco"));
Create3DTextLabel(string, 0xFFFFFFAA, iconX, iconY, iconZ+0.80, 20.0, 0, 1);
}
}
}
}
for(new c = 0; c < MAX_CASAS; c++) { format(string, sizeof(string), "/Casas/casa%d.ini", c); if(dini_Exists(string)){ if(pickupid == dini_Int(string, "Id")){ if(dini_Int(string, "TDono") == 1){ new string2[222]; format(string2, sizeof(string2),"Casa\nDono: %s \nENTER", dini_Get(string, "Dono"), dini_Int(string, "Preco")); Create3DTextLabel(string2,0xFFFFFFAA, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1); } else { new string2[222]; format(string2, sizeof(string2),"Casa\nDono: Ninguem\nValor: R$%d\n/comprarcasa\nENTER", dini_Int(string, "Preco")); Create3DTextLabel(string2,0xFFFFFFAA, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1); } } } }
for(new c = 0; c < MAX_CASAS; c++)
{
format(string, sizeof(string), "/Casas/casa%d.ini", c);
if(dini_Exists(string))
{
if(pickupid == dini_Int(string, "Id"))
{
if(dini_Int(string, "TDono") == 1)
{
new string2[222];
format(string2, sizeof(string2),"Casa\nDono: %s \nENTER", dini_Get(string, "Dono"), dini_Int(string, "Preco"));
Create3DTextLabel(string2,0xFFFFFFAA, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1);
}
if(dini_Int(string, "TDono") == 0)
{
new string2[222];
format(string2, sizeof(string2),"Casa\nDono: Ninguem\nValor: R$%d\n/comprarcasa\nENTER", dini_Int(string, "Preco"));
Create3DTextLabel(string2,0xFFFFFFAA, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1);
}
}
}
}