Pomoc u vezi healall komande

Započeo Neckiy
22. Mar. 2019.
804
pregleda
12
postova
Neckiy
4
Shot Caller
22. Mar. 2019.
Da li mi iko moze reci kako mogu svima dati healte, mislim na foru SetPlayerHealth, dali postoji to ali za sve igrace?
FunnyGamingDay - FGD
6
OG Legend
22. Mar. 2019.

CMD:healall(playerid, params[]) //koji koristis vec proces komandi
{
      for(new i = 0; i < MAX_PLAYERS; i++) //pravis petlju (mozes koristiti i foreach(Player, i) ukoliko koristis Foreach inc.
      {
              SetPlayerHealth(i, 99.0); // stavi koliko hoces helti umesto 99.0
      }
      SendClientMessageToAll(-1, "Admin je dao svima full hp.");
      return 1;
}

Former SA:MP server developer

Neckiy
4
Shot Caller
22. Mar. 2019.
Vasic wrote on March 22, 2019, 8:38 pm:

CMD:healall(playerid, params[]) //koji koristis vec proces komandi
{
      for(new i = 0; i < MAX_PLAYERS; i++) //pravis petlju (mozes koristiti i foreach(Player, i) ukoliko koristis Foreach inc.
      {
              SetPlayerHealth(i, 99.0); // stavi koliko hoces helti umesto 99.0
      }
      SendClientMessageToAll(-1, "Admin je dao svima full hp.");
      return 1;
}


Undefined symbol: i
taj problem mi izlazi
FunnyGamingDay - FGD
6
OG Legend
22. Mar. 2019.
Na kojoj bre liniji?

Former SA:MP server developer

Neckiy
4
Shot Caller
22. Mar. 2019.

CMD:healall(playerid, params[]) //koji koristis vec proces komandi
{
      for(new i = 0; i < MAX_PLAYERS; i++) //pravis petlju (mozes koristiti i foreach(Player, i) ukoliko koristis Foreach inc.
      {
              SetPlayerHealth(i, 99.0); // stavi koliko hoces helti umesto 99.0
      }
      SendClientMessageToAll(-1, "Admin je dao svima full hp.");
      return 1;
}


problem je u 3. liniji kod for(new i = 0)
FunnyGamingDay - FGD
6
OG Legend
22. Mar. 2019.
https://forum.sa-mp.com/showthread.php?t=173383

Former SA:MP server developer

Exnas.pwn
5
Godfather
22. Mar. 2019.
CMD:healall(playerid, params[])

foreach(new i : Player)
{
SetPlayerHealth(i,99.0);
}
SendClientMessageToAll(-1, "Admin %s je izlecio sve igrace!",GetName(playerid));
return 1;
}
Neckiy
4
Shot Caller
23. Mar. 2019.
ᴠᴇᴅʀᴀɴ.ᴀᴍx wrote on March 22, 2019, 10:51 pm:
CMD:healall(playerid, params[])

foreach(new i : Player)
{
SetPlayerHealth(i,99.0);
}
SendClientMessageToAll(-1, "Admin %s je izlecio sve igrace!",GetName(playerid));
return 1;
}


Vedrane izbacuje mi problem kod tvojeg
Undefined symbol: i
Undefined symbol: foreach
Dellenzi_Car
5
Underboss
23. Mar. 2019.
NEmas include foreach cini mi se
Exnas.pwn
5
Godfather
23. Mar. 2019.
Neckiy wrote on March 23, 2019, 8:50 am:
Vedrane izbacuje mi problem kod tvojeg
Undefined symbol: i
Undefined symbol: foreach

Na vrhu skripte dodaj
#include < foreach > 

Ukoliko ti bude error
fatal error 100: cannot read from file: "foreach"

skini ovo i ubaci u pawno>includes https://github.com/karimcambridge/SAMP-foreach/releases
Neckiy
4
Shot Caller
23. Mar. 2019.
Da bio je problem u foreach hvala ali sad kad compilujem izlazi mi kod ovoga
SCMTA(-1,""SIVA"["CRVENA"UY:RP"SIVA"]"ZUTA" Admin %s je healovao sve igrace!",GetName(playerid));

izlazi: C:\Users\Neckiy\Desktop\****\gamemodes\grandlarc.pwn(920) : warning 202: number of arguments does not match definition
Neckiy
4
Shot Caller
23. Mar. 2019.
Resio sam sve HVALA na pomoci !!!!!!

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha