16.03.2010, 20:35
Hey guys, could any of you help me with these:
the following lines:
I did notice that they're all because of mysql_GetStr so here is the stock:
pawn Код:
C:\DOCUME~1\Mike\Desktop\SA-MP\GAMEMO~1\mysql.pwn(4343) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\Mike\Desktop\SA-MP\GAMEMO~1\mysql.pwn(13756) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\Mike\Desktop\SA-MP\GAMEMO~1\mysql.pwn(13800) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\Mike\Desktop\SA-MP\GAMEMO~1\mysql.pwn(21208) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\Mike\Desktop\SA-MP\GAMEMO~1\mysql.pwn(21298) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\Mike\Desktop\SA-MP\GAMEMO~1\mysql.pwn(23120) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
pawn Код:
4343: stringEX=mysql_GetStr("`business`","`name`",queryEX);
13756: String=mysql_GetStr("vehicles","owner",queryEX);
13800: String=mysql_GetStr("vehicles","owner",queryEX);
21208: stringEX=mysql_GetStr("vehicles","owner",String);
21298: String=mysql_GetStr("vehicles","owner",String);
pawn Код:
mysql_GetStr(tab[],col[],line[]){
format(queryEX,256,"SELECT `%s` FROM `%s` WHERE %s;",col,tab,line);
mysql_query(queryEX);
mysql_store_result();
if(mysql_num_rows()){
mysql_fetch_row(fresult);
format(fresult,256,"%s",fresult);
} else {
format(fresult,1," ");
}
mysql_free_result();
return fresult;
}