[Problema] Ocultar TextDraws
#4

Quote:
Originally Posted by SeQualX
Посмотреть сообщение
Una y otra y otra vez, en vez de crear tanto server de RP te recomiendo que te unas a uno y mas cuando no puedes ni ocultar un textdraw es un consejo...
Gracias por tu comentario, me ayudo bastante.. -.-'. Si vengo a pedir ayuda es para aprender y progresar, no para escuchar a alguien que me diga que deje de hacer X tarea por ignorancia. No todos nacen sabiendo.

Quote:

tira el codigo de este pickup. asi te vamos a poder ayudar mas facilmente dado q es un error de scripteo de algo q se te paso chequear.

Quote:

for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(7.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
{
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil] == 0)
{
//format(string, sizeof(string), "~w~Dueno de la casa~n~~b~%s~w~~n~Nivel: %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
format(string, sizeof(string), "~w~Propietario: %s~n~Nivel: %d~n~Costo: $%d.",HouseInfo[h][hOwner],HouseInfo[h][hLevel],HouseInfo[h][hValue]);
}
else
{
//format(string, sizeof(string), "~w~Dueno de la casa~n~~b~%s~w~~n~Renta: ~r~$%d ~w~~n~Nivel: %d~n~~w~Escriba ~g~/rcuarto~w~ para rentar este cuarto",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
format(string, sizeof(string), "~w~Propietario: %s~n~Nivel: %d~n~Costo: $%d.~n~~y~Renta~w~: $%d.",HouseInfo[h][hOwner],HouseInfo[h][hLevel],HouseInfo[h][hValue],HouseInfo[h][hRent]);
}
//GameTextForPlayer(i, string, 5000, 3);
ActualizarTextoTutoEx(i,string,4000)
return 1;
}
else
{
//format(string, sizeof(string), "~y~Propiedad en Venta~n~~g~Info: ~w~%s ~n~~g~Costo: ~w~$%d~n~~g~ Nivel: ~w~%d~n~~g~/comprarcasa~w~ para comprar",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
format(string, sizeof(string), "~g~Casa en Venta~n~~w~Descripcion: %s~n~Nivel: %d~n~Costo: ~r~$%d~w~.",HouseInfo[h][hDiscription],HouseInfo[h][hLevel],HouseInfo[h][hValue]);
}
//GameTextForPlayer(i, string, 5000, 3);
ActualizarTextoTutoEx(i,string,4000)
return 1;
}
}

Es un pedazo del Cуdigo, que creo que es eso lo que pedis -.-, si necesitas otra cosa porfavor decime.
El ActualizarTextoTutoEx proviene de un Include programado por, si no mal recuerdo, GROVE4l, yo agarrй dicho Include y lo customizй un poco para que de el resultado de la imagen que se ve arriba.
Lo cual seria:
Quote:

TextoTuto69[playerid] = TextDrawCreate(22.000000,158.000000,"Texto del Tutorial~n~Lee el Include de ~g~grove4l~w~para mas~n~info");
TextDrawBackgroundColor(TextoTuto69[playerid], 255);
TextDrawFont(TextoTuto69[playerid], 1);
TextDrawLetterSize(TextoTuto69[playerid], 0.500000, 1.200000);
TextDrawColor(TextoTuto69[playerid], -1);
TextDrawSetOutline(TextoTuto69[playerid], 0);
TextDrawSetProportional(TextoTuto69[playerid], 1);
TextDrawSetShadow(TextoTuto69[playerid], 1);
TextDrawUseBox(TextoTuto69[playerid], 1);
TextDrawBoxColor(TextoTuto69[playerid], 255);
TextDrawTextSize(TextoTuto69[playerid], 183.000000, 0.000000);
return 1;

stock ActualizarTextoTutoEx(playerid,NuevoTexto[],Tiempo)
{
TextDrawSetString(TextoTuto69[playerid],NuevoTexto);
TextDrawShowForPlayer(playerid,TextoTuto69[playerid]);
SetTimerEx("ChauText",Tiempo,0,"d",playerid);
return 1;
}
public ChauText(playerid)
{
TextDrawHideForPlayer(playerid,TextoTuto69[playerid]);
return 1;
}

Reply


Messages In This Thread
[Problema] Ocultar TextDraws - by El Bardo - 25.11.2010, 02:26
Re: [Problema] Ocultar TextDraws - by SeQualX - 25.11.2010, 02:35
Respuesta: [Problema] Ocultar TextDraws - by TheChaoz - 25.11.2010, 02:35
Re: [Problema] Ocultar TextDraws - by El Bardo - 25.11.2010, 02:52
Respuesta: [Problema] Ocultar TextDraws - by TheChaoz - 25.11.2010, 03:02
Re: [Problema] Ocultar TextDraws - by The_Moddler - 25.11.2010, 08:27
Re: Respuesta: [Problema] Ocultar TextDraws - by El Bardo - 26.11.2010, 23:12

Forum Jump:


Users browsing this thread: 1 Guest(s)