Can't Return Float Value?
#1

pawn Код:
Getsomething(somethingid)
{
  new query[128];
    format(query, sizeof(query), "SELECT `something` FROM `something ` WHERE `something` = something LIMIT 1", something + something);
    samp_mysql_query(query);
    samp_mysql_store_result();
    new Float:value;
    if (samp_mysql_num_rows()!=0)
    {
      new tmp[256];
        samp_mysql_fetch_row(tmp);
        value = floatstr(tmp);
        samp_mysql_free_result();
    }
    return value; // this line is the issue
}
"warning 213: tag mismatch"

Can anyone help?

P.S: Ignore all the somethings
Reply
#2

Float:Getsomething(someyhingid){
blabla.
return value;
}
Reply
#3

thanks ^^

works now.
Reply
#4

np...Try to read pawn-lang.pdf^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)