// OnGameModeInit
SetTimer("AttHoras", 5000, true);
// Qualquer lugar da gm
forward AttHoras();
public AttHoras()
{
new horas, minutos, segundos;
gettime(horas, minutos, segundos);
new str[10];
format(str, sizeof(str), "%d:%d", horas, minutos);
if(horas < 10) format(str, sizeof(str), "0%d:%d", horas, minutos);
if(minutos < 10) format(str, sizeof(str), "%d:0%d", horas, minutos);
TextDrawSetString(NomeDaText, str);
return 1;
}
Coloca a base na gm.
@edit Vocк precisa trocar o nome la em TextDrawSetString(NomeDaText e colocar uma textdraw sua |
forward AttHoras(); public AttHoras() { new horas, minutos, segundos; gettime(horas, minutos, segundos); new str[10]; format(str, sizeof(str), "%01d:%01d", horas, minutos); TextDrawSetString(NomeDaText, str); TextDrawShowForAll(NomeDaText); return 1; }
C:\Documents and Settings\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(1993) : warning 217: loose indentation C:\Documents and Settings\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(1996) : warning 217: loose indentation C:\Documents and Settings\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(1996) : error 029: invalid expression, assumed zero C:\Documents and Settings\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(1996) : error 004: function "AttHoras" is not implemented C:\Documents and Settings\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2007) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Ips botei o seu cуdigo e deu isso
Код:
C:\Documents and Settings\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(1993) : warning 217: loose indentation C:\Documents and Settings\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(1996) : warning 217: loose indentation C:\Documents and Settings\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(1996) : error 029: invalid expression, assumed zero C:\Documents and Settings\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(1996) : error 004: function "AttHoras" is not implemented C:\Documents and Settings\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2007) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |