Raised This Month: $ Target: $400
 0% 

Help With CODE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
padilha007
Senior Member
Join Date: Jul 2008
Old 08-04-2008 , 22:21   Help With CODE
Reply With Quote #1

I need to get a name of player, if name = "[Xiter]nameofplayer" then i use my code.


PHP Code:
    static name[32]
    
get_user_name(idname31)
    if (
get_user_name(id) = "[Xiter]%s" name) {
    
// My code
    

in compiler say: Undefined symbol "name", anyone can help?
padilha007 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-04-2008 , 22:51   Re: Help With CODE
Reply With Quote #2

As per the Global Forum Rules, you need to have a descriptive topic. If you wish for this topic to stay open, please correct the topic title before you post again.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 08-04-2008 , 23:25   Re: Help With CODE
Reply With Quote #3

Code:
if( equal( name, "[Xiter]", 7) ){
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-05-2008 , 08:38   Re: Help With CODE
Reply With Quote #4

Emp`, he needs to know more than that, he doesn't know how to get a players name....
Code:
new name[32]; get_user_name( id , name , 31 ); if( equal( name , "[Xiter]" , 7 ) ) {     //OMG its a Xiter }
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 08-06-2008 , 02:42   Re: Help With CODE
Reply With Quote #5

Quote:
Originally Posted by Xanimos View Post
Emp`, he needs to know more than that, he doesn't know how to get a players name....
Code:
new name[32]; get_user_name( id , name , 31 ); if( equal( name , "[Xiter]" , 7 ) ) {     //OMG its a Xiter }
he had the code to get players name in main post....
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-07-2008 , 11:36   Re: Help With CODE
Reply With Quote #6

Quote:
Originally Posted by Emp` View Post
he had the code to get players name in main post....
Yes, but he also had
Code:
 if (get_user_name(id) = "[Xiter]%s" , name) {     // My code     }

Which shows he really doesn't know what he's doing.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
padilha007
Senior Member
Join Date: Jul 2008
Old 08-07-2008 , 12:15   Re: Help With CODE
Reply With Quote #7

i'm have no idea what i'm doing, but now i know tnx all
padilha007 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 05:31.


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