Jump to content
  • 0

pomoc Pomoc z error


Firess0

Dotaz

CMD:healr(playerid, params[]) {

 

if (isnull(params)) return SendClientMessage(playerid, -1, "[ ! ] Použití: /healr [RÁDIUS]");

new

iRadius = strval(params);

if (iRadius < 1 || iRadius > 99) return SendClientMessage(playerid, -1, "[ ! ] Rozmezí rádiusu je 1-99 !");

new

sString[144 + 1],

sNick[MAX_PLAYER_NAME + 1],

Float: fPlayerPos[3];

GetPlayerPos(playerid, fPlayerPos[0], fPlayerPos[1], fPlayerPos[2]);

for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)  {

 

if (IsPlayerInRangeOfPoint(playerid, float(iRadius), fPlayerPos[0], fPlayerPos[1], fPlayerPos[2])) SetPlayerHealth(playerid, 100.0);

}

GetPlayerName(playerid, sNick, sizeof(sNick));

format(sString, sizeof(sString), "Administrátor %s doplnil všem hráčům život v určité oblasti", sNick);

SendClientMessageToAll(0xFF000000, sString);

return (true);

}

 

 

error 017: undefined symbol "GetPlayerPoolSize"

Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...