Raised This Month: $276 Target: $400
 69% 

PbReadString crashing my server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FroGeX
Junior 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


Thread Tools
Display Modes

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 13:20.


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