y_iterate problem
#1

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.
Reply
#2

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

didn't work , this is my MAX_BUSINESS

Quote:

#define MAX_BUSINESS (500)

Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)