Raised This Month: $ Target: $400
 0% 

Getting user place from mysql


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
reinert
Veteran Member
Join Date: Feb 2007
Old 05-08-2011 , 12:30   Re: Getting user place from mysql
Reply With Quote #8

Actually I don't know how to use it properly.

I don't know how to print the result with client_print.

Like: Your rank is %d of %d.
Right now I've got this:
PHP Code:
public CmdRank(id)
{
    new 
szTemp[512];
    new 
szAuthID[33];
    
get_user_authid(idszAuthIDsizeof(szAuthID))
    
formatex(szTemp511"SELECT COUNT(*)+1 AS rank FROM rank WHERE skill>(SELECT skill FROM rank WHERE UserAuth=%s);"szAuthID)
    
SQL_ThreadQuery(g_SqlTuple,"IgnoreHandle",szTemp);


Last edited by reinert; 05-08-2011 at 12:32.
reinert 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 19:59.


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