Como pongo esto en TextDraws
#1

Hola
Como Puedo poner esto en TextDraws?


Aqui el Codigo:

pawn Код:
if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
                    {
                        if(SBizzInfo[h][sbOwned] == 1)
                        {
                            format(string, sizeof(string), "~w~%s~w~~n~Propietario: %s~n~Extortion by : %s~n~Entrada: ~g~$%d ~n~~g~/entrar ~w~para entrar",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost]);
                        }
                        else
                        {
                            format(string, sizeof(string), "~w~%s~w~~n~Costo: ~g~$%d ~w~Nivel : %d ~n~~g~/comprarlocal~w~ para comprar",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
                        }
                        GameTextForPlayer(i, string, 5000, 3);
                        return 1;
                    }
                }
Reply
#2

en ves del gametextforplayer, puedes usar el TextDrawShowForPlayer
Reply
#3

Quote:
Originally Posted by [SRG
Toxic_Racer ]
en ves del gametextforplayer, puedes usar el TextDrawShowForPlayer
pero tiene que crear el textdraw.

Danos mas informacion.
Reply
#4

Quote:
Originally Posted by xenowort
Quote:
Originally Posted by [SRG
Toxic_Racer ]
en ves del gametextforplayer, puedes usar el TextDrawShowForPlayer
pero tiene que crear el textdraw.

Danos mas informacion.
Bueno, pense que solo necesitaba ese codigo xD

PD: recuerda usar en el textdrawshowforplayer la varible que te dan para crear el textdraw (por defecto: Textdraw1) usala asi TextDrawShowForPlayer(playerid,Textdraw1);
Reply
#5

y tambiйn usa "TextDrawSetString", todo estб en la wiki.
Reply
#6

La Unica Respuesta Correcta Fue la de Cesar_Biker :S Porque la cosa es con TextDrawSetString, pero no entiendo mucho :S me podrian explicar mas porfas? osea, como debe ser el TextDraw Creado, y eso xD
Reply
#7

Osea como queres vos?.

El Textdraw queres?
Reply
#8

LO QUIERO PONER EN TEXTDRAWS, LO DIJE BIEN CLARO, Y POR LOS OTROS COMENTARIOS, ESTAS MAL, PORQUE SE ENTIENDE
Reply
#9

El Nombre, Precio y Nivel va con TextDrawSetString, seria una cosa asi:

pawn Код:
TextDrawSetString(Text1, "Nombre %s", SBizzInfo[h][sbMessage])
TextDrawShowForPlayer(playerid, string);
EsAsi de facil
Reply
#10

Quote:
Originally Posted by Gw-platinum
El Nombre, Precio y Nivel va con TextDrawSetString, seria una cosa asi:
pawn Код:
TextDrawSetString(Text1, "Nombre %s", SBizzInfo[h][sbMessage])
TextDrawShowForPlayer(playerid, string);
EsAsi de facil
Sabes que eso estб mal, don't you?

pawn Код:
new string[32];
format(string, sizeof(string), "Nombre: %s", namestring);
TextDrawSetString(textdrawid, string);
Asн es como deberнa ser (sustituyendo lo que se necesite por supuesto).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)