Raised This Month: $51 Target: $400
 12% 

native


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alex2001
Member
Join Date: May 2019
Old 06-07-2019 , 18:16   native
Reply With Quote #1

/********************************************* ************
* Get rank of a player on the server
*
* @param client The client index of the player to get the rank
* @param callback The return Callback
* @param data Any data you would like that return on the callback
* @noreturn
********************************************* ************/
native void RankMe_GetRank(int client, RankCallback callback, any data = 0);

how can i get it..callback what is..i dont understand
alex2001 is offline
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 06-08-2019 , 05:57   Re: native
Reply With Quote #2

You should learn the programming in general before trying to do things, and asking help for almost everything
btw here it is:
PHP Code:
public Action Command_Rank(clientargs)
{
    
int player client;
    
RankMe_GetRank(clientRankCallbackplayer);
}

public 
RankCallback(clientrankany:player)
{
    if (
rank == 1)
    {
        
PrintToChat(client"You're the top 1!");
    } else {
        
PrintToChat(client"Your rank: %i"rank);
    }

You can find test codes for almost every rankme native here

Last edited by Nexd; 06-08-2019 at 05:57.
Nexd is offline
alex2001
Member
Join Date: May 2019
Old 06-08-2019 , 09:49   Re: native
Reply With Quote #3

yea.. but i need to show rank in hud.. no your rank is.. but i try
alex2001 is offline
alex2001
Member
Join Date: May 2019
Old 06-08-2019 , 18:07   Re: native
Reply With Quote #4

ShowHudText(client, -1, "Credite : %i | Cod referal : %s | Referali : %i | Rank : %i", credits, cod, referali, rank,???????????????????);
can someone help me?
alex2001 is offline
Cruze
Veteran Member
Join Date: May 2017
Old 06-09-2019 , 01:19   Re: native
Reply With Quote #5

Quote:
Originally Posted by alex2001 View Post
ShowHudText(client, -1, "Credite : %i | Cod referal : %s | Referali : %i | Rank : %i", credits, cod, referali, rank,???????????????????);
can someone help me?
PHP Code:
char szMessage[128];
Format(szMessagesizeof(szMessage), "Credite : %i | Cod referal : %s | Referali : %i | Rank : %i"creditscodreferalirank);
ShowHudText(client, -1szMessage); 
__________________
Taking paid private requests! Contact me
Cruze is offline
alex2001
Member
Join Date: May 2019
Old 06-09-2019 , 04:56   Re: native
Reply With Quote #6

dosent help..i dont need FORMAt.. i need to get rank with native and display..but i dont know how can i get rank..
alex2001 is offline
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 06-09-2019 , 08:16   Re: native
Reply With Quote #7

You have got an example about how to get the rank, Cruze gived you an example about how can you display it in the hud. (And you need to use Format)
What's wrong?
In my example, rank means the rank of the player, and I just created that if statement to be more clearly, and how can you use it, but as I see without success
Nexd is offline
alex2001
Member
Join Date: May 2019
Old 06-09-2019 , 14:59   Re: native
Reply With Quote #8

someone who has mod can close topic.
when i say "i dont know sourcepawn" probably you cant understand.
alex2001 is offline
Reply



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 17:37.


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