Pomoc u vezi healall komande
804
pregleda
12
postova
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
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
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)
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;
}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
23. Mar. 2019.
Neckiy wrote on March 23, 2019, 8:50 am:
Vedrane izbacuje mi problem kod tvojeg
Undefined symbol: i
Undefined symbol: foreach
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
23. Mar. 2019.
Da bio je problem u foreach hvala ali sad kad compilujem izlazi mi kod ovoga
izlazi: C:\Users\Neckiy\Desktop\****\gamemodes\grandlarc.pwn(920) : warning 202: number of arguments does not match definition
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
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
