07.01.2017, 20:58
Quote:
de uma estuda nela antes de colocar ne sua GM, para entender como funiona
PHP код:
|
(71) : error 017: undefined symbol "dia_s"
(71) : warning 215: expression has no effect
(77) : error 017: undefined symbol "TD"
(77) : warning 215: expression has no effect
(77) : error 001: expected token: ";", but found "]"
(77) : error 029: invalid expression, assumed zero
(77) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.[/QUOTE]
PHP код:
public Relogio()
{
new string[255];
minu_s++;
if(minu_s >= 59)
{
minu_s = 0;
horas_s++;
}
if(horas_s > 23)
{
horas_s = 0;
dia_s++; // Linha 71
}
format(string, sizeof(string), "%02d_%02d", horas_s, minu_s);
for(new i = 0; i < GetPlayerPoolSize()+1; i++)
{
SetPlayerTime(i, horas_s, minu_s);
PlayerTextDrawSetString(i, TD[i], string); // Linha 77
PlayerTextDrawShow(i, TD[i]);
}
return 1;
}