AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I 've written a buggy plugin with TF2 classes,weapons (https://forums.alliedmods.net/showthread.php?t=99879)

hzqst 08-10-2009 09:55

I 've written a buggy plugin with TF2 classes,weapons
 
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

[ --<-@ ] Black Rose 08-10-2009 10:38

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

hzqst 08-12-2009 04:01

Re: I 've written a buggy plugin with TF2 classes,weapons
 
I've corret the MSG_ALL to MSG_BROADCAST
but still crash the server


All times are GMT -4. The time now is 18:29.

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