[HELP] Bugged Chat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Bugged Chat (
/showthread.php?tid=426838)
[HELP] Bugged Chat -
bruxo00 - 30.03.2013
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(playerid, text[])
{
new textv2[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
SendPlayerMessageToAll(playerid, textv2);
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(playerid, text[])
{
return 1;
}
And it's exactly as above. I need help fast. Thank You.
FilterScript
PasteBin
Re: [HELP] Bugged Chat -
judothijs - 30.03.2013
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.
Re: [HELP] Bugged Chat -
Sandiel - 30.03.2013
You're probably using different command processors, such as ZCMD and strcmp etc.
Re: [HELP] Bugged Chat -
bruxo00 - 30.03.2013
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