Raised This Month: $ Target: $400
 0% 

[HELP] Fast, please. How to get player id?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DaxProxy
Senior Member
Join Date: Sep 2007
Old 04-05-2009 , 08:41   [HELP] Fast, please. How to get player id?
Reply With Quote #1

PHP Code:
public QueryVip(iFailStateHandle:hQueryszError[], iErrnumcData[], iSizeFloat:fQueueTime)
{
    if( 
iFailState != TQUERY_SUCCESS )
    {
        return 
log_amx("[Kz-Arg] SQL: SQL Error #%d - %s"iErrnumszError)
    }
    
    if( 
SQL_MoreResults(hQuery) )
    {
        new 
resultado[2][192]
        new 
punktid
        SQL_ReadResult
(hQuery0resultado[0], 191)
        
SQL_ReadResult(hQuery1resultado[1], 191)
        
punktid str_to_num(resultado[0]) 
    if (
punktid >= 50)
    {
        
client_print(0print_chat"Punktide arv: %s!"resultado[0]) 
        
client_print(0print_chat"Sa ostsid 50 punkti eest endale VIPi!"resultado[0]) 
     }
    else
    {
        
client_print(0print_chat"Sul ei ole piisavalt punkte (%s)!"resultado[0]) 
     }
    }
    return 
PLUGIN_CONTINUE    

QueryVip(iFailState, Handle:hQuery, szError[], iErrnum, cData[], iSize, Float:fQueueTime, id)

If i put ID in there, i get ID=0 Which is not right. Now, resultado[1] is user's name...so is there any way i can get user id from user's name?
DaxProxy 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 02:15.


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