Raised This Month: $32 Target: $400
 8% 

PbReadString crashing my server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FroGeX
Senior Member
Join Date: Aug 2020
Old 09-08-2020 , 14:21   PbReadString crashing my server
Reply With Quote #1

https://crash.limetech.org/i7b55r2cnnxa
https://crash.limetech.org/hupvz7dfzx3f

I use PbReadString in

PHP Code:
public void OnPluginStart()
{
    
HookUserMessage(GetUserMessageId("TextMsg"), EventOnTextMsgtrue);
}
public 
Action EventOnTextMsg(UserMsg msg_idHandle msg, const int[] playersint playersNumbool reliablebool init)
{
    
char buffer[64];
    
PbReadString(msg"params"buffersizeof(buffer), 0);

    if(
StrContains(buffer"#Player_"false) != -|| StrContains(buffer"#Team_"false) != -|| StrContains(buffer"#Chat_SavePlayer_"false) != -|| StrContains(buffer"#Cstrike_"false) != -|| StrContains(buffer"#game_"false) != -|| StrContains(buffer"#SFUIHUD_InfoPanel_Coop_CollectCoin"false) != -|| StrContains(buffer"#SFUI_Notice_YouDroppedWeapon"false) != -|| StrContains(buffer"#SFUI_Buy"false) != -|| StrContains(buffer"#SFUI_Healthshot_AlreadyAtMax"false) != -1)
        return 
Plugin_Handled;
    return 
Plugin_Continue;

And sometimes server crash when player is killed.

any tips for fix it?
FroGeX 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 17:52.


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