error 035: argument type mismatch (argument 1)
#1

The error I get:
PHP код:
error 035argument type mismatch (argument 1
The spoken function (I put "// Error line" after the line that shows the errors):
PHP код:
GetStats(playerid)
{
    new 
string[128],
        
pName[MAX_PLAYER_NAME+1];
    
GetPlayerName(playeridpNamesizeof(pName));
    
format(stringsizeof(string), "SELECT * FROM users WHERE username = '%s'"pName);
    
mysql_query(string);
    
mysql_store_result();
    while(
mysql_fetch_row(string))
    {
        
mysql_fetch_int("admin"gPlayerInfo[playerid][pAdmin]); // Error line
    
}
    
mysql_free_result();
    return 
1;

NOTE: Also look at post number #6 before you comment, I provided an important update.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)