help | mysql.
#1

edit:

no matter..
i fixed the bug.
Reply
#2

See what this does for you:

pawn Код:
stock GetPlayerTag(playerid)
{
    new szResult[100], szQuery[300];
    format(szQuery, sizeof(szQuery), "SELECT `Tag` FROM `Users` WHERE `Nick` = '%s'", GetName(playerid));
    mysql_query(szQuery);
   
    if(mysql_num_rows() > 0)
        while(mysql_fetch_row_format(szResult, "|")) sscanf(szResult, "s[100]", szTag))
    else szTag = "NULL";
    return szTag;
}
Reply
#3

i not using with sscanf.
Reply
#4

You should of mentioned that earlier.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)