Raised This Month: $ Target: $400
 0% 

Help with a amx_showip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 08-19-2013 , 06:46   Re: Help with a amx_showip
Reply With Quote #1

PHP Code:
frags[0], deaths[0
0 Length Arrays ?

You dont need to make them arrays.

Secondly
get_user_team doesnt work like this.Again no need of making it an array

PHP Code:
public function(id

    new 
team get_user_team(id
//make a switch statement to check what it returns and Then store the value in variable.
//get_user_team(id) == 1 //ts
//get_user_team(id) == 2 //ct                                 
//get_user_team(id) == 3 // spec
//get_user_team(id) == 0 // unnasigned                                 

Thirdly

PHP Code:
get_user_frags(frags)
get_user_deaths(deaths
Wrong
Correct way is
PHP Code:
get_user_frags(id)
get_user_deaths(id
Correct These First and Revert Back.



Edit : http://forums.alliedmods.net/showthread.php?p=372646
You can use this as well.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then

Last edited by devilicioux; 08-19-2013 at 06:47. Reason: More info.
devilicioux is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 08-25-2013 , 00:17   Re: Help with a amx_showip
Reply With Quote #2

Quote:
Originally Posted by devilicioux View Post
PHP Code:
public function(id

    new 
team get_user_team(id
//make a switch statement to check what it returns and Then store the value in variable.
//get_user_team(id) == 1 //ts
//get_user_team(id) == 2 //ct                                 
//get_user_team(id) == 3 // spec
//get_user_team(id) == 0 // unnasigned                                 

I think get_user_team returns 3 for both unassigned and spectators. Someone correct me if im wrong.
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 08-25-2013 , 00:32   Re: Help with a amx_showip
Reply With Quote #3

Quote:
Originally Posted by pokemonmaster View Post
I think get_user_team returns 3 for both unassigned and spectators. Someone correct me if im wrong.
You are wrong.

0 = Unassigned
1 = Terrorist
2 = Counter Terrorist
3 = Spectator
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd 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 15:49.


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