Raised This Month: $ Target: $400
 0% 

Few questions from idiot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
LambdaLambda
AlliedModders Donor
Join Date: Oct 2010
Location: London
Old 10-26-2012 , 14:24   Re: Few questions from idiot
Reply With Quote #10

coz i'm idiot. Thanks.

One more, and last one.

IMO, this should check if in table pfield_content is filled in field_11, and if it's client's steamid. And if there is filled in, to get member_id. And then if it has found steamid in there to send as a true, or if not to send as a false. The point is, it doesn't work. It do connects to database etc. And the error console says is "[0] Line 529, testytest.sp::ForumAccount()"
PHP Code:
bool:ForumAccount(client)
{
    if (
IsClientInGame(client))
    {
        new 
String:steamid[50];
        
GetClientAuthString(clientsteamidsizeof(steamid))
        new 
String:sqlstring[200];
        
Format(sqlstringsizeof(sqlstring), "SELECT member_id FROM pfields_content WHERE field_11 = %s "steamid);
        
SQL_LockDatabase(dbconipb);
        new 
Handle:sql SQL_Query(dbconipbsqlstring);
        new 
forumek_bool SQL_GetRowCount(sql);
        
CloseHandle(sql);
        
SQL_UnlockDatabase(dbconipb);
        
        if (
forumek_bool)
        {
            return 
true;
        }
        else
        {
            return 
false;
        }
    }
    
    return 
true;

What's wrong in here?
LambdaLambda is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode