Raised This Month: $32 Target: $400
 8% 

Help with register native inc


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 02-22-2018 , 08:45   Help with register native inc
Reply With Quote #1

What is wrong? Can someone explain me can make this include file?

Code:
#include <amxmodx>
#include <username>

function(client)
{
    user_name(client);
}
Code:
// username.inc
#if defined _username_included
    #endinput
#endif

#define _username_included

#pragma library "username"

native user_name(client);
Saint Sinner is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-22-2018 , 09:24   Re: Help with register native inc
Reply With Quote #2

Don't use include files, just create a normal stock.
__________________
Relaxing is offline
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 02-22-2018 , 09:41   Re: Help with register native inc
Reply With Quote #3

yes but i have 2 plugins that request this inc file
Attached Files
File Type: sma Get Plugin or Get Source (rb.sma - 200 views - 15.2 KB)
Saint Sinner is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-22-2018 , 11:41   Re: Help with register native inc
Reply With Quote #4

What does the stock? Retrieves user name?
__________________
Relaxing is offline
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 02-22-2018 , 19:31   Re: Help with register native inc
Reply With Quote #5

yes man thanks for speaking
Saint Sinner is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-22-2018 , 20:16   Re: Help with register native inc
Reply With Quote #6

The include file looks fine to me as long as the native actually exists in a plugin somewhere.
__________________
fysiks is online now
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-23-2018 , 01:03   Re: Help with register native inc
Reply With Quote #7

Code:
console_print(id, "My name is %s", user_name(id)); stock user_name(index){     new szName[32];     get_user_name(index, szName, charsmax(szName);     return szName; }
Is a thing you're looking for?
__________________
Relaxing 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 02:23.


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