Raised This Month: $51 Target: $400
 12% 

No Score [2013] [0.0.2]


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-22-2013 , 04:52   Re: No Score [2013] [0.0.2]
Reply With Quote #11

Some guys can code, some guys can't.
You are the only one who can know if you can manage or not.
What is obvious is that you haven't learned base.

Looking at your code, this is a really basic error, and a really important error :

PHP Code:
is_user_connected(iAttacker && iVictim
You pass 2 indexes with &&, so, iAttacker && iVictim value with either be 0 either be 1, so is_user_connected(0) is always returning 0, and is_user_connect(1) depend on player with index 1.


PHP Code:
set_pev(iAttackerpev_frags0); 
pev_frags field type is Float, by chance, in binary 0 is same as 0.0
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
LordOfNothing
BANNED
Join Date: Jul 2013
Old 10-22-2013 , 05:01   Re: No Score [2013] [0.0.2]
Reply With Quote #12

Quote:
Originally Posted by ConnorMcLeod View Post
Some guys can code, some guys can't.
You are the only one who can know if you can manage or not.
What is obvious is that you haven't learned base.

Looking at your code, this is a really basic error, and a really important error :

PHP Code:
is_user_connected(iAttacker && iVictim
You pass 2 indexes with &&, so, iAttacker && iVictim value with either be 0 either be 1, so is_user_connected(0) is always returning 0, and is_user_connect(1) depend on player with index 1.


PHP Code:
set_pev(iAttackerpev_frags0); 
pev_frags field type is Float, by chance, in binary 0 is same as 0.0

Maybe but if i like coding and i wish be more good ??

I do this thinngs because i dont understand what wanna say YamiKaitou , my first code was diferent ..

Last edited by LordOfNothing; 10-22-2013 at 05:01.
LordOfNothing is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 10-22-2013 , 07:41   Re: No Score [2013] [0.0.2]
Reply With Quote #13

Quote:
Originally Posted by ConnorMcLeod View Post
PHP Code:
set_pev(iAttackerpev_frags0); 
pev_frags field type is Float, by chance, in binary 0 is same as 0.0
I think also since the callback forward is registered by post (or it's not really important), he will need to send a ScoreInfo message to update the scoreboard. Please correct me if I am wrong.
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster 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:51.


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