SetTimerEx no se activa en OnPlayerConnect D:
#1

Buenas noches

Verб, me estoy creando una presentaciуn al momento de conectarse con textdraw's el problema es que en el callback OnPlayerConnect no llama a la funciуn que le indico, osea, no se ejecuta.

pawn Код:
public OnPlayerConnect(playerid)
{
    InicioCuenta = SetTimerEx("Inicio",1000,1, "is",playerid);
    TextDrawShowForPlayer(playerid, Iniciando);
    TextDrawShowForPlayer(playerid, Fondo);
    AccountInfo[playerid][aLogged] = 0;
    AccountInfo[playerid][aAdmin] = 0;
    AccountInfo[playerid][aBloqueado] = 0;
    AccountInfo[playerid][aSilencio] = 0;
    adminservicio[playerid] = 0;
    Advertido[playerid] = 0;
   
    new string[256];
    GetPlayerName(playerid, string, sizeof(string));
    format(string,sizeof(string), "{00FFFF}!>> %s {CCFFFF}se ah unido a Lunnatiic'z Freeroam!!", string);
    SendClientMessageToAll(0xBBBBBBAA,string);
   
    SetPVarInt(playerid, "laser", 0);
    SetPVarInt(playerid, "color", 18643);
    return 1;
}
Eso es lo que esta en el callback, la funciуn a la que llamo es la siguiente.

pawn Код:
public Inicio(playerid)
{
    switch(Letras)
    {
        case 0: { Letras = 12, PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, L); }
        case 1: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, U); }
        case 2: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, N);}
        case 3: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, N2); }
        case 4: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, A); }
        case 5: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, T); }
        case 6: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, i1); }
        case 7: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, i2); }
        case 8: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, C); }
        case 9: { Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, Acento); }
        case 10:{ Letras--; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, Z1); }
        case 11:{ Letras--; PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, Freeroam); }
        case 12:{ Letras--; PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0), TextDrawShowForPlayer(playerid, VerdeB),TextDrawShowForPlayer(playerid, BlancoB), TextDrawShowForPlayer(playerid, RojoB), TextDrawShowForPlayer(playerid, SimboloB), ShowPlayerDialog(playerid, 500, DIALOG_STYLE_MSGBOX, "{FFFF33}Reglas del Servidor", reglas, "Continuar", ""), KillTimer(InicioCuenta);}
    }
}
obviamente ya esta el forward & el resto de definiciones, de quй manera se utilizarнa el SetTimer? Dado a que ya use un prinft & no se imprime, e inclusive introduci las funciones en un comando & tampoco se ejecuta xD

pawn Код:
if (!strcmp( cmdtext, "/test", true))
    {
      InicioCuenta = SetTimer("Inicio",1000,1);
      TextDrawShowForPlayer(playerid, Iniciando);
      TextDrawShowForPlayer(playerid, Fondo);
      return 1;
    }
Tambiйn intentй con

pawn Код:
if (!strcmp( cmdtext, "/test", true))
    {
      InicioCuenta = SetTimerEx("Inicio",1000,1, "is", playerid);
      TextDrawShowForPlayer(playerid, Iniciando);
      TextDrawShowForPlayer(playerid, Fondo);
      return 1;
    }
.

Alguna idea del porquй?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)