Raised This Month: $ Target: $400
 0% 

Please delete this post


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-15-2006 , 22:39  
Reply With Quote #10

well, it does just use that. The reason for pName[33][32] is it uses one name for each player.

so if there were three people in the server with ids 1 , 2 , and 3 with names Jeff , Bob , and Jack it would be set up as follows

pName[1][0] = 'J'
pName[1][1] = 'e'
pName[1][2] = 'f'
pName[1][3] = 'f'
pName[1][4] = '^0'


pName[2][0] = 'B'
pName[2][1] = 'o'
pName[2][2] = 'b'
pName[2][3] = '^0'


pName[3][0] = 'J'
pName[3][1] = 'a'
pName[3][2] = 'c'
pName[3][3] = 'k'
pName[3][4] = '^0'


If you were just storing one name it would be pName[32] and would store as you are asking

pName[0] = 'J'
pName[1] = 'e'
pName[2] = 'f'
pName[3] = 'f'
pName[4] = '^0'


Oh and cmd_target() returns a players id (a number) by using a name or authid or #userid
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
 



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 16:38.


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