Eror filescripts

Započeo SanelPandzic, Oktobar 29, 2017, 12:56:03 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Desperator
Detaljan opis problema:ima filescripts gde napravim text i eror mi izaso
Dio skripte:
eror
[pawn]C:\Users\Sanel\Desktop\Desperato v1.1\filterscripts\fmat.pwn(137) : error 017: undefined symbol "Iter_Contains"
C:\Users\Sanel\Desktop\Desperato v1.1\filterscripts\fmat.pwn(191) : error 017: undefined symbol "Iter_Contains"[/pawn]
skripta
[pawn]public OnFilterScriptExit()
{
   for(new i = 0; i < MAX_MATERIALS; i++)
     {
        if(Iter_Contains(MatsItr,i))
        {
         SaveMat(i);
         DeleteMat(i);
      }
   }
   return 1;
}[/pawn]
skripta 2
[pawn]CMD:editmat(playerid, params[])
{
   new ID;
    if(sscanf(params, "i",ID))
    {
        SendClientMessage(playerid, -1, "[USAGE]: /editmat(erial) [id]");
        return 1;
    }
    if(!Iter_Contains(MatsItr,ID)) return SendClientMessage(playerid, -1, "Material ID doesn't exists");
   
    ShowPlayerDialog(playerid, DIALOG_MATS , DIALOG_STYLE_LIST, "Material System - v1.0 by FuNkY", "Change Text\nChange Font\nChange Color\nChange Font Size\nChange Background Color\nChange Allignment\nBold Text\nChange Resolution\nEdit Material Pos\nDuplicate Material\nDelete Material", "Select", "Close");
    SOID[playerid] = ID;
    return 1;
}[/pawn]
Neke slike/video za lakse dobivanje pomoci(neobavezno):


jos puno erora mi se pojavilo cak mi crash  pawno

Ne mostoji funkcija Iter_Contains. Ako si kopirao od nekud, nisi dobro kopirao, a ako si je sam radio  onda verovatno nisi definisao tu funkciju. Nadji u skripti Iter_Contains gde je definisan, ili je sam definisi.


“Without requirements or design, programming is the art of adding bugs to an empty text file.” - Louis Srygley

Moraš imati iterate include.

[pawn]#include < YSI/y_iterate >[/pawn]