28.11.2009, 09:26
I can't compile and I don't know how to solve this :S
It will give errors:
How fix this?
pawn Код:
new query[128];
new sqprice,sqlocx[64],sqlocy[64],sqlocz[64],sqpickup[64];
8512 samp_mysql_real_escape_string(bizzvalue, sqprice);
8513 samp_mysql_real_escape_string(pos[0], sqlocx);
8514 samp_mysql_real_escape_string(pos[1], sqlocy);
8515 samp_mysql_real_escape_string(pos[2], sqlocz);
8516 samp_mysql_real_escape_string(pickup, sqpickup);
8517 format(query, sizeof(query), "INSERT INTO testdb (price, locX, locY, locZ, bpickup) VALUES ('%i', '%f', '%f', '%f', '%i')", sqprice,sqlocx,sqlocy,sqlocz,sqpickup);
8518 samp_mysql_query(query);
Код:
(8512) : error 035: argument type mismatch (argument 1) (8513) : warning 213: tag mismatch (8514) : warning 213: tag mismatch (8515) : warning 213: tag mismatch (8516) : error 035: argument type mismatch (argument 1)