SA-MP Forums Archive
y_iterate problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: y_iterate problem (/showthread.php?tid=574990)



y_iterate problem - AlexBlack - 22.05.2015

Hi, i'am trying to use YSI iterate and i got some errors

PHP код:
./scripts/Black_DefVar.pwn(129) : error 001expected token";"but found "::"
./scripts/Black_Func.pwn(448) : error 017undefined symbol "BusinessIter@YSII_Ag"
./scripts/Black_Func.pwn(448) : error 017undefined symbol "BusinessIter@YSII_Ag"
./scripts/Black_Func.pwn(448) : error 029invalid expressionassumed zero
./scripts/Black_Func.pwn(448) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
5 Errors

this is my code

PHP код:
new iteratorBusinessIter<MAX_BUSINESS>; // This is line 129 from Black_DefVar.pwn 
PHP код:
stock Business_close()
{
    foreach(new 
BusinessIter// THIS IS THE LINE 448 form Black_Func.pwn
    
{
        
SaveBusiness(i);
    }
    return 
1;

Thank's for advance.


Re: y_iterate problem - RaeF - 22.05.2015

new iterator:BusinessIter<MAX_BUSINESS>; Try it maybe , show me your MAX_BUSINESS macro


Re : y_iterate problem - AlexBlack - 22.05.2015

didn't work , this is my MAX_BUSINESS

Quote:

#define MAX_BUSINESS (500)




Re : y_iterate problem - AlexBlack - 22.05.2015

Solved, it's just a small mistake , it's must be Iterator not iterator