Raised This Month: $ Target: $400
 0% 

Keep List of players with details!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
johnally
Member
Join Date: May 2011
Location: Mauritius
Old 05-10-2011 , 16:35   Re: Keep List of players with details!
Reply With Quote #5

I don't want pre-made stuffs :S.. I'm no script kiddie in some sense..

Oh, yeah.. no offtopic.. some mods will slap us

Anyway, I got the listing down.. however, my new del_players function is not really attractive.. Replacing existing values in an array, when you can delete them, is not recommended.. do you know of a way to delete a whole index array entry.. lets say "players[5]" ?? In the amx/pawn wiki it does NOT show how

New del_players:
PHP Code:
// ----------------------------------------------------------------------------
// -----------------------Delete old player details---------------------------
public del_players(id) {      
    
players[id 1][0] = "[none]"
    
players[id 1][1] = "[none]"
    
players[id 1][2] = "[Player Left]"

Will it work if I use "^0" ?
__________________
No allowed!


Last edited by johnally; 05-10-2011 at 16:44.
johnally is offline
 



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 04:23.


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