11.01.2012, 13:34
Hey,
Building a new dynamic robbery system in SQLite. I have a few errors with the db_get_field_assoc:
[code]
C:\Users\Michael\Desktop\Los Santos Cops And Robbers 0.3c\pawno\include\robberysq.pwn(90) : warning 213: tag mismatch
C:\Users\Michael\Desktop\Los Santos Cops And Robbers 0.3c\pawno\include\robberysq.pwn(111) : warning 213: tag mismatch
C:\Users\Michael\Desktop\Los Santos Cops And Robbers 0.3c\pawno\include\robberysq.pwn(131) : warning 203: symbol is never used: "pRobTimer"
C:\Users\Michael\Desktop\Los Santos Cops And Robbers 0.3c\pawno\include\robberysq.pwn(131) : warning 203: symbol is never used: "pRobbingTicks"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings.
[/pawn]
Ignore the other 2 warnings.
Building a new dynamic robbery system in SQLite. I have a few errors with the db_get_field_assoc:
pawn Код:
db_get_field_assoc(Result,"Checkpoint",Field,sizeof(Field));
RobberyInfo[i][pCheckpoint] = strval(Field);
db_get_field_assoc(Result,"Label",Field,sizeof(Field));
RobberyInfo[i][pLabel] = strval(Field); // line 90
db_get_field_assoc(Result,"Created",Field,sizeof(Field));
RobberyInfo[i][pCreated] = !!strval(Field);
db_get_field_assoc(Result,"LocX",Field,sizeof(Field));
RobberyInfo[i][pLocX] = floatstr(Field);
db_get_field_assoc(Result,"LocY",Field,sizeof(Field));
RobberyInfo[i][pLocY] = floatstr(Field);
db_get_field_assoc(Result,"LocZ",Field,sizeof(Field));
RobberyInfo[i][pLocZ] = floatstr(Field);
db_get_field_assoc(Result,"RobberyValue",Field,sizeof(Field));
RobberyInfo[i][pRobberyValue] = strval(Field);
db_get_field_assoc(Result,"RobberyName",Field,sizeof(Field));
RobberyInfo[i][pRobberyName] = strval(Field);
db_get_field_assoc(Result,"Size",Field,sizeof(Field));
RobberyInfo[i][pSize] = floatstr(Field); // 111
db_get_field_assoc(Result,"Interior",Field,sizeof(Field));
RobberyInfo[i][pInterior] = strval(Field);
C:\Users\Michael\Desktop\Los Santos Cops And Robbers 0.3c\pawno\include\robberysq.pwn(90) : warning 213: tag mismatch
C:\Users\Michael\Desktop\Los Santos Cops And Robbers 0.3c\pawno\include\robberysq.pwn(111) : warning 213: tag mismatch
C:\Users\Michael\Desktop\Los Santos Cops And Robbers 0.3c\pawno\include\robberysq.pwn(131) : warning 203: symbol is never used: "pRobTimer"
C:\Users\Michael\Desktop\Los Santos Cops And Robbers 0.3c\pawno\include\robberysq.pwn(131) : warning 203: symbol is never used: "pRobbingTicks"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings.
[/pawn]
Ignore the other 2 warnings.