[DUDA/AYUDA]Me Podrian Ayudar Con Esto?
#1

Buenas A Todos, Salu2
Hoy vengo a pedirles algo que necesito de vital inportancia.

par losque saben es facil, lo aran quisas en 5 minutos por mucho que tarden...

bien, cree un textdraw con TextDrawEditor1.0es, y es de Matados: Muertes:
Y loque necesito es poner que diga las muertes y los matados...

que es esto:
Matados: PlayerInfo[player1][Deaths]
Muertes: Float:PlayerInfo[player1][Kills]

Pero no se como ponerselo al textdraw para que diga sus respectivas muertes y matadas, el FS del textdraw, ya lo agregue al FS de Ladmin, Pero no se como agregarle PlayerInfo[player1][Deaths] y Float:PlayerInfo[player1][Kills].

Ayuda selos agradeceria MUCHO!

Aqui el FS (sin agregar al FS Ladmin.) Solo aganem el favor de agregar PlayerInfo[player1][Deaths] y Float:PlayerInfo[player1][Kills], y yo miro como es y lo ago en el ladmin.

GRACIAS.

PHP код:
public OnFilterScriptInit()
{
    
Textdraw0 TextDrawCreate(481.000000312.000000"Muertes:  Matados:");
    
TextDrawBackgroundColor(Textdraw0255);
    
TextDrawFont(Textdraw01);
    
TextDrawLetterSize(Textdraw00.4400001.200000);
    
TextDrawColor(Textdraw0, -1);
    
TextDrawSetOutline(Textdraw00);
    
TextDrawSetProportional(Textdraw01);
    
TextDrawSetShadow(Textdraw01);
    
TextDrawUseBox(Textdraw01);
    
TextDrawBoxColor(Textdraw0, -791621582);
    
TextDrawTextSize(Textdraw0635.000000, -61.000000);
    for(new 
iMAX_PLAYERS++)
    {
        if(
IsPlayerConnected(i))
        {
            
TextDrawShowForPlayer(iTextdraw0);
        }
    }
    return 
1;

Reply
#2

Primero que nada "matados" o "matadas" no serнa la mejor manera de describir el acto de matar, mбs correctamente serнa asesinatos.

https://sampwiki.blast.hk/wiki/Format

Serнa algo asн:
pawn Код:
new ejemplo[12];
format(ejemplo, sizeof(ejemplo) /* aquн tambiйn puedes poner la cantidad de carбcteres */, "%d", PlayerInfo[player1][Deaths]);
TextDrawSetString(Textdraw0, ejemplo);
Esto mбs que nada es un ejemplo para que te guнes de cуmo hacerlo.

PD: їPor quй tienes declarado PlayerInfo[player1][Kills] como Float?, no tiene sentido porque es un int.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)