06.05.2011, 04:00
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.
Eso es lo que esta en el callback, la funciуn a la que llamo es la siguiente.
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
Tambiйn intentй con
.
Alguna idea del porquй?

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;
}
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);}
}
}
pawn Код:
if (!strcmp( cmdtext, "/test", true))
{
InicioCuenta = SetTimer("Inicio",1000,1);
TextDrawShowForPlayer(playerid, Iniciando);
TextDrawShowForPlayer(playerid, Fondo);
return 1;
}
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й?