Raised This Month: $ Target: $400
 0% 

i need help with public~


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lucky109
Senior Member
Join Date: Jan 2005
Old 05-20-2007 , 23:52   i need help with public~
Reply With Quote #1

Code:
public go()
{
going(test);
}

public going(test)
{
new pname[32];
get_user_name(target,pname,31);
client_print(0, print_chat, "%s", pname)
}
i have save a value to "test" (the value is player index)
i want show pname to admin only....how i can do this?

i have to try...than error undefined symbol "id"
Code:
public going(test)
{
new pname[32];
get_user_name(target,pname,31);
if (get_user_flags(id)&ADMIN_LEVEL_H)
{ 
client_print(id, print_chat, "%s", pname)
}
}
lucky109 is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-21-2007 , 05:19   Re: i need help with public~
Reply With Quote #2

You have to change "id" into "test" because like you said, test contain the player index) ;)
__________________
regalis 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 10:40.


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