Raised This Month: $ Target: $400
 0% 

I 've written a buggy plugin with TF2 classes,weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hzqst
Senior Member
Join Date: Jul 2008
Old 08-10-2009 , 09:55   I 've written a buggy plugin with TF2 classes,weapons
Reply With Quote #1

It often crash the server when many players having fun

I think the stock
PHP Code:
FX_UpdateScore(id){
 if(!(
<= id <= g_maxplayers)) return
 
set_pev(idpev_fragsfloat(g_score[id]));
 
set_pdata_int(idOFFSET_CSDEATHSg_death[id]);
 static 
teamteam fm_get_user_team(id)
 
message_begin(MSG_ALLg_msgScoreInfo)
 
write_byte(id)
 
write_short(g_score[id])
 
write_short(g_death[id])
 
write_short(0)
 
write_short(team)
 
message_end()
 if(
team == || team == 3) return
 
message_begin(MSG_ALLg_msgTeamScore);
 
write_string(CS_Teams[team]);
 
write_short(g_score_team[team]);
 
message_end();

won't work fine because I sometimes ran it with bots and it said
Quote:
the msg"87" has not been sent
I'm a chinese and SORRY FOR MY BAD ENGLISH

Last edited by hzqst; 03-01-2011 at 06:52.
hzqst is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 08-10-2009 , 10:38   Re: I 've written a buggy plugin with TF2 classes,weapons
Reply With Quote #2

MSG_BROADCAST
[ --<-@ ] Black Rose is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 08-12-2009 , 04:01   Re: I 've written a buggy plugin with TF2 classes,weapons
Reply With Quote #3

I've corret the MSG_ALL to MSG_BROADCAST
but still crash the server
hzqst 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 10:43.


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