#1

Hice un conteo y todo estб bien, pero en el formato si cambio de color me da crash, es el primer formato el segundo anda sin problemas .

pawn Код:
forward OnPlayerConteo(playerid);

public OnPlayerConteo(playerid)
{
    new numero[3];
    format(numero, sizeof(numero), "~b~~h~%d", iconteo);
    GameTextForPlayer(playerid, numero, 1000, 3);
    iconteo--;
    if(iconteo != -1)
    {
        PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
    }
    if(iconteo == -1)
    {
        GameTextForAll("~r~~h~~h~yaaaa!", 1000, 6);
        PlayerPlaySound(playerid, 3200, 0.0, 0.0, 0.0);
        TogglePlayerControllable(playerid, true);
        KillTimer(ConteoPlayer);
    }
    return 1;
}
Reply
#2

Pasa que sуlo le darб formato a los primeros 3 caracteres. Por lo que serб asн:

Код:
~b

// + el caracter nulo.
Soluciуn? Aumentar el tamaсo del array 'numero'.
Reply
#3

Quote:
Originally Posted by EnzoMetlc
Посмотреть сообщение
Pasa que sуlo le darб formato a los primeros 3 colores. Por lo que serб asн:

Код:
~b

// + el caracter nulo.
Soluciуn? Aumentar el tamaсo del array 'numero'.
Se me fue el aviуn , gracias Enzo .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)