criticalnyy
Wiek: 30 Na forum: 3590 dni Posty: 1
Nick w MP: NiKe
Aktualnie robi? pasek stanu dla swojego serwera..
Mam zrobiony lecz mam problem ot?? w fowardzie i publicu z refreshem napotka?em problem sam public wygl?da tak :
Kod: forward td_refresh();
public td_refresh()
{
/* ODSWIEZANIE GRACZY ONLINE */
format(td_string, sizeof(td_string), "Online: ~y~%d", Iter_Count(Player));
TextDrawSetString(Online, td_string);
foreach (new playerid : Player)
{
z1 = gettime() - GetPVarInt(playerid, "oTime");
z2 = z1/60;
z3 = z1/3600;
/* ODSWIEZANIE CZASU GRY */
format(td_string, sizeof(td_string), "%02d~y~h ~w~%02d~y~min", z3, z2);
PlayerTextDrawSetString(playerid, Belt_Player[TIME_ONLINE][playerid], td_string);
/* ODSWIEZANIE PIENIEDZY */
format(td_string, sizeof(td_string), "Pieniedzy: ~y~%d~w~$", GetPlayerMoney(playerid));
PlayerTextDrawSetString(playerid, Belt_Player[PLAYER_MONEY][playerid], td_string);
/* ODSWIEZANIE SCORE */
format(td_string, sizeof(td_string), "Respekt: ~y~%d", GetPlayerScore(playerid));
PlayerTextDrawSetString(playerid, Belt_Player[PLAYER_SCORE][playerid], td_string);
}
return 1;
}
i mam 4 b??dy podczas kompilacji :
Kod: D:\Documents and Settings\Ja\Pulpit\Polski Gold Party\filterscripts\pstanu.pwn(269) : error 017: undefined symbol "foreach"
D:\Documents and Settings\Ja\Pulpit\Polski Gold Party\filterscripts\pstanu.pwn(269) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Ja\Pulpit\Polski Gold Party\filterscripts\pstanu.pwn(269) : error 017: undefined symbol "playerid"
D:\Documents and Settings\Ja\Pulpit\Polski Gold Party\filterscripts\pstanu.pwn(269) : fatal error 107: too many error messages on one line
I mo?e kto? pom?c naprawi? b??dy ;d