D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(33900) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
//Players online //========================================================================== >>33900> error here> OnlineText = TextDrawCreate(192.000000, 411.000000, " "); TextDrawBackgroundColor(OnlineText, 255); TextDrawFont(OnlineText, 3); TextDrawLetterSize(OnlineText, 0.430000, 1.600000); TextDrawColor(OnlineText, -1); TextDrawSetOutline(OnlineText, 0); TextDrawSetProportional(OnlineText, 1); TextDrawSetShadow(OnlineText, 1);
new Text:OnlineText; //--------- format(strings, 100, "~y~Jugadores Online: ~r~%d/100",GetOnLinePlayers()); TextDrawSetString(OnlineText, strings); TextDrawShowForPlayer(playerid, OnlineText); //-------------------- stock GetOnLinePlayers() { new OnLine; for(new i, g = GetMaxPlayers(); i < g; i++) if(IsPlayerConnected(i)) OnLine++; return OnLine; } //Players online //========================================================================== OnlineText = TextDrawCreate(192.000000, 411.000000, " "); TextDrawBackgroundColor(OnlineText, 255); TextDrawFont(OnlineText, 3); TextDrawLetterSize(OnlineText, 0.430000, 1.600000); TextDrawColor(OnlineText, -1); TextDrawSetOutline(OnlineText, 0); TextDrawSetProportional(OnlineText, 1); TextDrawSetShadow(OnlineText, 1);
new Text:OnlineText; //--------- format(strings, 100, "~y~Jugadores Online: ~r~%d/100",GetOnLinePlayers()); TextDrawSetString(OnlineText, strings); TextDrawShowForPlayer(playerid, OnlineText); //-------------------- stock GetOnLinePlayers() { new OnLine; for(new i, g = GetMaxPlayers(); i < g; i++) if(IsPlayerConnected(i)) OnLine++; return OnLine; } //Players online //========================================================================== OnlineText = TextDrawCreate(192.000000, 411.000000, " "); TextDrawBackgroundColor(OnlineText, 255); TextDrawFont(OnlineText, 3); TextDrawLetterSize(OnlineText, 0.430000, 1.600000); TextDrawColor(OnlineText, -1); TextDrawSetOutline(OnlineText, 0); TextDrawSetProportional(OnlineText, 1); TextDrawSetShadow(OnlineText, 1);
hey bro i got another problem when players close it's still with the last number of players
if 4 players online and they close it's still 4/20 ?? |
pPlayerCount--;
format(strings, 100, "~y~Sparta's Players: ~r~%d/20",GetOnLinePlayers++()); TextDrawSetString(OnlineText, strings); TextDrawShowForPlayer(playerid, OnlineText);
format(strings, 100, "~y~Sparta's Players: ~r~%d/20",GetOnLinePlayers--()); TextDrawSetString(OnlineText, strings); TextDrawShowForPlayer(playerid, OnlineText);
format(strings, 100, "~y~Sparta's Players: ~r~%d/20", Iter_Count(Player));