14.12.2016, 14:26
(
Последний раз редактировалось vikoo; 16.12.2016 в 15:08.
)
Hello, i tried to add a players online number but i got 1 error here
line:
The Script :
Код:
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);