[Ajuda] Comando que funciona apenas no hamachi!
#1

eae galera, blz? eu tenho um comando aqui, que no hamachi funciona beleza, mas no host nгo!

pawn Код:
if(strcmp(cmd, "/lerrrelogio", true) == 0)
{
format(string, sizeof(string), "%d:%d", RelogioFunc[0], RelogioFunc[1]);
SendClientMessage(playerid, 0xFF6600AA, string);
return 1;
}
esse comando quando acionado no hamachi, mostra as horas,
mas no host fica assim: 0:0

pq sera? O.o
Reply
#2

.closed
Reply
#3

Quote:
Originally Posted by GoldLion
Посмотреть сообщение
eae galera, blz? eu tenho um comando aqui, que no hamachi funciona beleza, mas no host nгo!

pawn Код:
if(strcmp(cmd, "/lerrrelogio", true) == 0)
{
format(string, sizeof(string), "%d:%d", RelogioFunc[0], RelogioFunc[1]);
SendClientMessage(playerid, 0xFF6600AA, string);
return 1;
}
esse comando quando acionado no hamachi, mostra as horas,
mas no host fica assim: 0:0

pq sera? O.o
Usa Este e Confiavel:

Achei um Creditos by:[CCV]saalada[]

pawn Код:
#include <a_samp>
//-----------=================-----------//
forward reloginho(playerid);
new Text:Reloginho1;
new Text:Reloginho2;
//-----------=================-----------//
public OnFilterScriptInit()
{
   
    SetTimer("reloginho",1000,1);
   
    Reloginho1 = TextDrawCreate(525.000000,5.000000,"--");
    Reloginho2 = TextDrawCreate(550.000000,23.000000,"--");
    TextDrawAlignment(Reloginho1,0);
    TextDrawAlignment(Reloginho2,0);
    TextDrawBackgroundColor(Reloginho1,0x000000FF);
    TextDrawBackgroundColor(Reloginho2,0x000000FF);
    TextDrawFont(Reloginho1,2);
    TextDrawLetterSize(Reloginho1,0.399999,2.000000);
    TextDrawFont(Reloginho2,2);
    TextDrawLetterSize(Reloginho2,0.399999,2.000000);
    TextDrawColor(Reloginho1,0xFFFFFFFF);
    TextDrawColor(Reloginho2,0xFFFFFFFF);
    TextDrawSetProportional(Reloginho1,1);
    TextDrawSetProportional(Reloginho2,1);
    TextDrawSetShadow(Reloginho1,1);
    TextDrawSetShadow(Reloginho2,1);
   
    TextDrawSetOutline(Reloginho1,1);
    TextDrawSetOutline(Reloginho2,1);
    TextDrawShowForAll(Reloginho1);
    TextDrawShowForAll(Reloginho2);
    return 1;
}
//-----------=================-----------//
public OnFilterScriptExit()
{
    TextDrawDestroy(Reloginho1);
    TextDrawDestroy(Reloginho2);
    TextDrawHideForAll(Reloginho1);
    TextDrawHideForAll(Reloginho2);
   
    print("[FS]Reloginho foi deslogado com Sucesso! :)");
    return 1;
}
//-----------=================-----------//
public OnPlayerSpawn(playerid)
{
    TextDrawHideForAll(Reloginho1);
    TextDrawShowForPlayer(playerid, Reloginho1);
    TextDrawHideForAll(Reloginho2);
    TextDrawShowForPlayer(playerid, Reloginho2);
    return 1;
}
//-----------=================-----------//
public reloginho(playerid)
{
    new
        string[256],
        ano,
        mes,
        dia,
        horas,
        minutos,
        segundos;
    getdate(ano, mes, dia);
    gettime(horas, minutos, segundos);
    format(string, sizeof string, "%d/%s%d/2009", dia, ((mes < 10) ? ("0") : ("")), mes);
    TextDrawSetString(Reloginho1, string);
    format(string, sizeof string, "%s%d:%s%d:%s%d", (horas < 10) ? ("0") : (""), horas, (minutos < 10) ? ("0") : (""), minutos, (segundos < 10) ? ("0") : (""), segundos);
    TextDrawSetString(Reloginho2, string);
}
Reply
#4

pawn Код:
if(strcmp(cmd, "/lerrrelogio", true) == 0)
{
    new pRelogio[3];
    gettime(pRelogio[0], pRelogio[1], pRelogio[2]);
    format(string, sizeof(string), "%d:%d", pRelogio[0], pRelogio[1]);
    SendClientMessage(playerid, 0xFF6600AA, string);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)