[HELP] Bugged Chat
#1

Hi everyone. I have a FilterScript Administration server, and it is bugar me the chat server. The commands appear all but the speeches of the players, no. And filterscript is because if the disconnect, is normally.*

Things I've tried:*

In gamemode put:

PHP код:
public OnPlayerText(playeridtext[]) 

    new 
textv2[128], name[MAX_PLAYER_NAME]; 
    
GetPlayerName(playeridnamesizeof (name)); 
    
format(textv2sizeof (textv2), "%d >> %s: %s"playeridnametext); 
    
SendPlayerMessageToAll(playeridtextv2); 
    return 
0// ignore the default text and send the custom one 

If I do this, it is exactly the same. I have also tried this by the end of FilterScript, but when I write something on the server, it crashes.* I've tried just putting:

PHP код:
public OnPlayerText(playeridtext[]) 

return 
1

And it's exactly as above. I need help fast. Thank You.

FilterScript

PasteBin
Reply
#2

Are you using different command processors? If you're using different ones at the same time, your server's chat system will shut down and crash. Use only 1 type of command processor.
Reply
#3

You're probably using different command processors, such as ZCMD and strcmp etc.
Reply
#4

In filterscript im using Strcmp and Zcmd.
In Gamemode only Zcmd.

Example of command:

PHP код:
COMMAND:changepassword(playerid,params[])
{
    new 
oldpass[129],newpass[129];
    if(
sscanf(params,"s[32]s[32]",oldpass,newpass)) return SendClientMessage(playerid,color_red,"USAGE: /changepassword [oldpassword] [newpassword]");
    
WP_Hash(oldpass,sizeof oldpass,oldpass);
    if(
strcmp(PlayerInfo[playerid][Password],oldpass)) return SendClientMessage(playerid,color_red,"ERROR! Your current password does not match with your entered password!");
    
#if USE_MYSQL_DATABASE == true
        
WP_Hash(PlayerInfo[playerid][Password],129,newpass);
    
#else
        
WP_Hash(PlayerInfo[playerid][Password],129,newpass);
    
#endif
    
SaveUser(playerid);
    return 
SendClientMessage(playerid,color_green,"Your password has succesfully been changed.");

How to change just to zcmd? Noob Friendly please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)