mysql_fetch_field error
#1

pawn Код:
stock GetPlayerLinerunnerMissions(playerid)
{
    new val[20];
    new totalvalue;
    format(Query,sizeof(Query),"SELECT `linerunner` FROM `playerinfo` WHERE `user` = '%s'", escpname(playerid));
    mysql_query(Query);
    mysql_store_result();
    mysql_fetch_field("linerunner", val);//argument type mismatch (argument 1)
    totalvalue = strval(val);
    mysql_free_result();
    return totalvalue;
}
See error above
Reply
#2

try this ..
pawn Код:
stock GetPlayerLinerunnerMissions(playerid)
{
    new val[20];
    new totalvalue;
    format(Query,sizeof(Query),"SELECT `linerunner` FROM `playerinfo` WHERE `user` = '%s'", escpname(playerid));
    mysql_query(Query);
    mysql_store_result();
    mysql_get_field("linerunner", val);
    totalvalue = strval(val);
    mysql_free_result();
    return totalvalue;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)