Warning 239

Započeo .Drakula., Jun 05, 2022, 12:57:10 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Problem(error/warning): Warning 239 svuda po skripti ali i po include
Koristim od Xundera compiled dev branch.  Pawn compiler 3.10.10
Pitanje kako popraviti ovo. Dialozi su lepo kreirani i sve lepo radi na severu.
Nemam gresaka uopeste samo warning.

Da li je radio neko nesto ovako, da li je popravljao i sredjivao.
Koji pawn vi koristite da nemate owe warninge, kako srediti ovo.
Deo skripte: [pawn]
// ovo su samo primeri ali ih mngo vise na dosta includa
C:\Users\Dragan\Drakula\BD\pawno\include\mSelection.inc(305) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Dragan\Drakula\BD\pawno\include\progress2.inc(308) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Dragan\Drakula\BD\gamemodes\BalkanskaDolinaMaps.pwn(817) : warning 239: literal array/string passed to a non-const parameter

// Imam warninga 239 i na svakom pozivanju dialoga kreiranog u skripti
SPD(playerid, 29999, DSM, ""bd"Statistika servera:", str, D_ZATVORI, "");
SPD(playerid, D_LOGIN, DSP, ""zel"Login:", logg, D_POTVRDI, D_ZATVORI);
SPD(playerid, 29999, DSM, ""bd"Banned:", filed, D_ZATVORI, "");

//imam i na (samo primeri, ima ih dosta)
SetPVarInt(i, "Spectate", 0);
SetPVarInt(playerid, "PopravkaVozila", 1);
if(GetPVarInt(playerid, "Spectate") < 1)
[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): Nema
Slika/video ingame problema(obavezno ako je ingame problem): Nema

Pawn community compiler zahteva da se argumenti funkcija koji su nizovi prosledjuju kao constantni argumenti. Izuzetak je explicitna naredba prosledjivanja po referenci.
Prvo sta treba da uradis je da update samp includove za novi compiler https://github.com/pawn-lang/samp-stdlib

I onda svugde gde imas definisanu funkciju koja ocekuje niz kao argument a da nije po referenci, moras dodati const naredbu.

Ja sam prvo uradio update samp includ i pokusavao sve zivo ali nista.
Sve kao na temi, dialozi imaju warning kao i sve ostalo
Sta da uradim povodom dialoga.?

A kako da sredim ostale inkludove
mSelection, progress2 i ostale, pokusavao sam sve i nista.

Ovo je problem,
[pawn]native NekaFunkcija(argument, argumentNiz[]);[/pawn]
argumentNiz nije constantnan to jest nije zasticen od promena od strane funkcije

Ovo ocekuje compiler
[pawn]NekaFunkcija(argument, const argumentNiz[]);[/pawn]

Isto vazi za stock, public i sve ostale definicije funkcija.

I dalje imam ovih.
Sta da uradim povoom njih.?


C:\Users\Drakula\Drakula\BD\pawno\include\Dini.inc(31) : warning 214: possibly a "const" array argument was intended: "filename"
C:\Users\Drakula\Drakula\BD\pawno\include\Dini.inc(39) : warning 214: possibly a "const" array argument was intended: "filename"
C:\Users\Drakula\Drakula\BD\pawno\include\Dini.inc(187) : warning 214: possibly a "const" array argument was intended: "key"
C:\Users\Drakula\Drakula\BD\pawno\include\Dini.inc(187) : warning 214: possibly a "const" array argument was intended: "filename"
C:\Users\Drakula\Desktop\BD\pawno\include\Dini.inc(249) : warning 214: possibly a "const" array argument was intended: "newname"
C:\Users\Drakula\Desktop\BD\pawno\include\Dini.inc(249) : warning 214: possibly a "const" array argument was intended: "oldname"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\internal\y_version.inc(245) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\internal\y_version.inc(245) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\internal\y_version.inc(245) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\internal\y_funcinc.inc(68) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\internal\y_funcinc.inc(69) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\internal\y_funcinc.inc(75) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_debug.inc(395) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_amx.inc(319) : warning 214: possibly a "const" array argument was intended: "pattern"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_utils.inc(266) : warning 214: possibly a "const" array argument was intended: "line"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_utils.inc(287) : warning 214: possibly a "const" array argument was intended: "haystack"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_utils.inc(540) : warning 214: possibly a "const" array argument was intended: "string"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_bit.inc(317) : warning 214: possibly a "const" array argument was intended: "array"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(198) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(225) : warning 214: possibly a "const" array argument was intended: "name"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(326) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(326) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(327) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(327) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(328) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(328) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(329) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(329) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(330) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(330) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(331) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(331) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(332) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(332) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(333) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(333) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(334) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(334) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(335) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(335) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(336) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(336) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(337) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(337) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(338) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(338) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(339) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(339) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(340) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(340) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(341) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(341) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(342) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(342) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(343) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(343) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(344) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(344) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(345) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(345) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(346) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(346) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(347) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(347) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(348) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(348) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(349) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(349) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(350) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(350) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(351) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(351) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(352) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(352) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(353) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(353) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(354) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(354) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(355) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(355) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(356) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(356) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(357) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(357) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(358) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(358) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(359) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(359) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(360) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(360) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(361) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(361) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(362) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(362) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(363) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(363) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(364) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(364) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(365) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(365) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(366) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(366) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(367) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(367) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(368) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(368) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(369) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(369) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(370) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(370) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(371) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(371) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(372) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(372) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(373) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(373) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(375) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(375) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(376) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(376) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(377) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(377) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(378) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(378) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(379) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(379) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(381) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(381) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(382) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(382) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(383) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(383) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(384) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(384) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(385) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(385) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(388) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(388) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(389) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(389) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(390) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(390) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(391) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(391) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(392) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(392) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(393) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(393) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(394) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(394) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(395) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(395) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(396) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(396) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(397) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(397) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(400) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(400) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(401) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_hooks/impl.inc(401) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_inline.inc(352) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_inline.inc(475) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_inline.inc(725) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_inline.inc(821) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_inline.inc(858) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(365) : warning 214: possibly a "const" array argument was intended: "source"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(395) : warning 214: possibly a "const" array argument was intended: "source"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(448) : warning 214: possibly a "const" array argument was intended: "filter"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(448) : warning 214: possibly a "const" array argument was intended: "remoteFormat"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(448) : warning 214: possibly a "const" array argument was intended: "fname"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(699) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(764) : warning 214: possibly a "const" array argument was intended: "tag"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(957) : warning 214: possibly a "const" array argument was intended: "data"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(1051) : warning 214: possibly a "const" array argument was intended: "name"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(1070) : warning 214: possibly a "const" array argument was intended: "name"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(1165) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(1169) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(1160) : warning 214: possibly a "const" array argument was intended: "name"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_ini.inc(1188) : warning 214: possibly a "const" array argument was intended: "name"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_iterate.inc(907) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_iterate.inc(1053) : warning 214: possibly a "const" array argument was intended: "array"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_iterate.inc(1173) : warning 214: possibly a "const" array argument was intended: "array"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_master/once.inc(470) : warning 214: possibly a "const" array argument was intended: "library"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_master\_impl2.inc(858) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_master\_impl2.inc(1599) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_master\_impl2.inc(1616) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_areas.inc(2136) : warning 214: possibly a "const" array argument was intended: "areas"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_areas.inc(2229) : warning 214: possibly a "const" array argument was intended: "bounds"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_areas.inc(2272) : warning 214: possibly a "const" array argument was intended: "bounds"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\y_areas.inc(2411) : warning 214: possibly a "const" array argument was intended: "bounds"
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\internal\..\y_master\_impl2.inc(858) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\internal\..\y_master\_impl2.inc(1599) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\YSI\internal\..\y_master\_impl2.inc(1616) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(103) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(110) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(110) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(119) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(172) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(191) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(221) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(230) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(232) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(233) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(234) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(235) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(256) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(287) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(292) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(303) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(304) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(305) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(306) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(311) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(312) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(313) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(315) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(374) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(383) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(387) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(388) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(389) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(390) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(391) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(392) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(394) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(395) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(450) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(451) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(454) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(461) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(491) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(491) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(493) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(500) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(520) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(531) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(545) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\mSelection.inc(564) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(254) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(260) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(266) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(275) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(281) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(287) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(296) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(302) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(308) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(317) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(323) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Drakula\Desktop\BD\pawno\include\progress2.inc(329) : warning 239: literal array/string passed to a non-const parameter

Sto se tice YSI, treba da update. Kad kazem treba da update, moze biti tesko, moze biti lako, zavisi sta koristis a sta ne, koju verziju trenutno imas, i naravno koliko znas (sudeci po pitanju ne puno - bez uvrede)

YSI kada update ta upozorenja iz YSI bi trebali nestati posto je v5.x napravljen za community compiler.

dini je include koji ima preko 10 godina sigurno i u tih 10 godina nije imao update (nije imalo razloga da se update)
progress2 mislim da imas novi na github, ali to znaci da ces verovatno naleteti na problem sa kompatabilnoscu funkcija tako da verovano je lakse samo edit taj include (najradije pokusaj da napravis backup pa da probas noviju verziju vidi oces imati errora).
mSelection iskreno neznam, ima ih vise verzija, ima vise ljudi da je to pravilo tako da ono, najradije edit include tako ces imati najmanje glavobolje.

Inace ne preporucujem nikome da edit includove, ali ovo je jedan od slucajeva kada je to potrebno (jeste idiotizam ali bez njega da se redefine cuda ne isplati se).

U post iznad sam ti dao primer sta imas trenutno i kako treba da izgleda definicija funkcije, znaci veoma lako da se fix, samo dodas const tamo gde treba.
Posao je dosadan, spor i treba da pazis ali je makar lagan.

Imas jos jedan idiotski nacin da to resis koji ja licno ne preporucujem a to je da na vrh skripte iznad svih includova dodas #pragma warning disable 329 sto ce u sustini reci compileru da ti ne prijavljuje ta upozorenja.
S obzirom na to da je const naredba za argumente tipa niz dodana sa jako dobrim razlogom, preporucujem da odmah ucis kako treba da se radi a ne kako je lakse.

Ma stavi samo na vrhu skripte #pragma warning disable 329 i nema da te boli glava HAHAHAHAHAHAH @DeletedUser LOCK!

Nekuzim zasto ulazite u skriptanje ako neznate engleski doslovno vam pawno kaze sta trebas uradit a vi i dalje guratr svoje ...
CitatNe idite uokolo tumačeći kako vam svijet duguje život. Svijet vam ne duguje ništa. On je bio prvi ovdje.

Citat: BTL | jevta poslato Jun 05, 2022, 22:03:50 POSLE PODNE
Ma stavi samo na vrhu skripte #pragma warning disable 329 i nema da te boli glava HAHAHAHAHAHAH @DeletedUser LOCK!
Mogao sam ja da stavim, znao sam ja to odmah, ali ne zelim da stavim jer tada nisam nista uradio, nisam resio problem vec ga samo zaobisao.

Citat: yeet poslato Jun 06, 2022, 09:45:14 PRE PODNE
Nekuzim zasto ulazite u skriptanje ako neznate engleski doslovno vam pawno kaze sta trebas uradit a vi i dalje guratr svoje ...
Znam ja engleski sasvim dobro, znam ja sta kaze pawno, uradio sam sve moguce i resio doslovno sve warninge.

@DeletedUser
Ostali su samo dialozi to ne mogu nikako da resim.
Uradio sam abdejt https://github.com/pawn-lang/samp-stdlib
Ali i dalje mi izbacuje warning 239 na svakom pozivu pokazivanja dialoga.
Koliko znam ShowPlayerDialog se nalasi u a_samp
Uradio sam abdejt i dalje ima warninga, dialoze sam ja kreirao i kreirani su ispravno. Dialozi rade.

Daj listu includova, verovatno imas nesto sto se hook na dialoge pa te to jebe.

Citat: .Drakula. poslato Jun 06, 2022, 19:49:40 POSLE PODNE
Mogao sam ja da stavim, znao sam ja to odmah, ali ne zelim da stavim jer tada nisam nista uradio, nisam resio problem vec ga samo zaobisao.
Znam ja engleski sasvim dobro, znam ja sta kaze pawno, uradio sam sve moguce i resio doslovno sve warninge.

@DeletedUser
Ostali su samo dialozi to ne mogu nikako da resim.
Uradio sam abdejt https://github.com/pawn-lang/samp-stdlib
Ali i dalje mi izbacuje warning 239 na svakom pozivu pokazivanja dialoga.
Koliko znam ShowPlayerDialog se nalasi u a_samp
Uradio sam abdejt i dalje ima warninga, dialoze sam ja kreirao i kreirani su ispravno. Dialozi rade.

Koristi y_dialogs ili easydialog...
HTML / CSS / Javascript / Inspect : Entry Masterclass.
ReactJS / Tailwind CSS / PWA / Axios / SCSS / Redux, ViteJS : Entry Masterclass.
C / C++ / C# / C-objective - kroz Pawn Lang : Entry Masterclass
Grupisano Pravljenje Objekata : Filterscript.


Sta je to web development?
To je nesto ono kao, kako bih to rekao, izgubis volju za zivotom i zelis da se ubijes, ali to je okej.
Onda jednostavno shvatis da si bio glup i resis problem, das sam sebi lajk,
skuvas NES 3u1 i pripremis se za sledeci projekat.

Citat: Deleted User poslato Jun 06, 2022, 23:34:17 POSLE PODNE
Daj listu includova, verovatno imas nesto sto se hook na dialoge pa te to jebe.
[pawn]
#include                      < a_samp >
#include                      < a_http >
#include                      < streamer >
#include                      < float >
#include                      < core >
#include                      < time >
#include                      < file >
#include                      < flood >
#include                      < morphinc >
#include                      < Dini >
#include                      < YSI_Storage\y_ini >
#include                            < Pawn.CMD >
#include                     < YSI_Data\y_bit >
#include                      < YSI_Visual\y_areas >
#include                      < sscanf2 >
#include                      < mSelection >
//#include                      < fuckcleo >
#include                      < progress2 >
#include                            < GetVehicleColor >[/pawn]

Proverio sam mSelection, cak sam nasao flood include u nekom modu na github tako da ne vidim sta bi moglo da se hook na dialog.
Nista vidi preko visual studio code, otvori samp server folder kao project (samo na folder open with visual studio code), pa imas search opciju i trazi citav server za ShowPlayerDialog).

PS: Nemoj misliti da sam samo predpostavio da koristis VSC nego ako ga nemas znaci instaliraj ga i spasi sebi zivce. Takodje imas sintaxy za pawn od southclaw-a na marketplace, i uputstva kako da "podesis compiler" sto se u stvari svodi na copy/paste json koda.

Resio sam i problem sa dialozima.
Iako sam uradio abdejt a_samp nisu resene sve stvari untar includa.
Bilo je:native ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
Resio sam:native ShowPlayerDialog(playerid, dialogid, style, const caption[], const info[], const button1[], const button2[]);
Sada wise nema warninga na dialozima.

Pojavila su se 3 warninga. Ako moze mala pomoc.
Znam sta znace ali sta ja da odradim u includu, nije u GM.
C:\Users\Drakula\Desktop\BD\pawno\include\YSI_Visual\y_areas\..\..\YSI_Data\y_foreach\y_foreach_iterators.inc(633) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Drakula\Desktop\BD\pawno\include\YSI_Visual\y_areas\..\..\YSI_Data\y_foreach\y_foreach_iterators.inc(633) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Drakula\Desktop\BD\pawno\include\YSI_Visual\y_areas\..\..\YSI_Data\y_foreach\y_foreach_iterators.inc(633) : warning 219: local variable "Z" shadows a variable at a preceding level



stock Iter_CreateActor(modelid, Float:X, Float:Y, Float:Z, Float:Rotation)   //----------- linija 633
{
new
ret = CreateActor(modelid, X, Y, Z, Rotation);
broadcastfunc Iter_ActorDo(true, ret);
#if _FOREACH_LOCALS
Iter_Add(LocalActor, ret);
#endif
return ret;
}