Hey,
iwie geht mein MySQL getfloat nicht richtig, denn ich bekomme immer einen Tag Mismatch
new Float:cpx,Float:cpy,Float:cpz;
new ZoneDatei[64];
format(ZoneDatei,64,"/Rennen/%d/1.txt",Rennid2);
if(fexist(ZoneDatei))
{
cpx = mysql_GetFloat("RaceCP", "cpx", "Rennen",Rennid2);
cpy = mysql_GetFloat("RaceCP", "cpy", "Rennen",Rennid2);
cpz = mysql_GetFloat("RaceCP", "cpz", "Rennen",Rennid2);
stock mysql_GetFloat(Table[], Field[], Where[], Is[])
{
new query[128], Float:sqlfloat;
mysql_real_escape_string(Table, Table);
mysql_real_escape_string(Field, Field);
mysql_real_escape_string(Where, Where);
mysql_real_escape_string(Is, Is);
format(query, 128, "SELECT `%s` FROM `%s` WHERE `%s` = '%s'", Field, Table, Where, Is);
mysql_query(query);
mysql_store_result();
mysql_fetch_float(sqlfloat);
mysql_free_result();
return true; //Zeile
}