[Ajuda] setimer
#10

se eu fosse vocк nгo ultilizaria GetTickCount

Код:
Important Note: GetTickCount will cause problems on servers with uptime of over 24 days (physical server, not SA:MP server) as GetTickCount will eventually warp past the integer size constraints
traduзгo:
Notнcia importante: GetTickCount causarб problemas em servidores quando passar de 24 horas (Servidor fнsico, nгo sa-mp server). como GetTickCount acabarб warp passado as restriзхes de tamanho inteiro.


Conclusгo
troque GetTickCount para Tickcount.
Exemplo:
pawn Код:
new countRelato[MAX_PLAYERS];//topo do GM

countRelato[playerid] = Tickcount();//quando ele mandar o relato

if(Tickcount()-countRelato[playerid] < 5000)
    return SendClientMessage(playerid,-1,"Vocк precisa esperar 5 segundos para mandar outro /relatorio");
Espero ter ajudado *-*

\/
Reply


Messages In This Thread
[Ajuda] setimer - by ceesar90 - 11.10.2011, 03:38
Re: Dъvida besta sobre setimer - by [BWL]DuST - 11.10.2011, 03:41
Re: Dъvida besta sobre setimer - by WLSF - 11.10.2011, 03:44
Re: Dъvida besta sobre setimer - by ceesar90 - 11.10.2011, 16:00
Re: [Ajuda] setimer - by [O.z]Caroline - 11.10.2011, 16:06
Re: [Ajuda] setimer - by Pharrel - 11.10.2011, 16:09
Re: [Ajuda] setimer - by ceesar90 - 11.10.2011, 16:22
Re: [Ajuda] setimer - by Pharrel - 11.10.2011, 16:25
Re: [Ajuda] setimer - by ceesar90 - 11.10.2011, 17:32
Re: [Ajuda] setimer - by [O.z]Caroline - 11.10.2011, 18:01

Forum Jump:


Users browsing this thread: 3 Guest(s)