Tag Mismatch - 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: Tag Mismatch (
/showthread.php?tid=310256)
Tag Mismatch -
Snowman12 - 11.01.2012
Hey,
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);
[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.
Re: Tag Mismatch -
CmZxC - 11.01.2012
Quote:
Originally Posted by a_sampdb.inc
native db_get_field_assoc(DBResult:dbresult, const field[], result[], maxlength);
|
The Field must be a string, not a numeric value..
Re: Tag Mismatch -
Snowman12 - 11.01.2012
Incorrect Have you ever used SQLite? Well basically floatstr is equal to strval. and
can be used as I use it fine inside my PlayerInfo DB.