SA-MP Forums Archive
Reaction Text - 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: Reaction Text (/showthread.php?tid=443680)



Reaction Text - Danyels - 13.06.2013

I found a bug at reaction test. if i write {123456} i win the test..

i tried this but don't work
Код:
    if(strfind(text, "{123456}", true) != -1)
	{
		SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot write this thing !");
		return 0;
	}
Код:
    if(strfind(text, "123456", true) != -1)
	{
		SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot write this thing !");
		return 0;
	}
and

Код:
       if(strfind(text, "{", true) != -1)
	{
		SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot write this thing !");
		return 0;
	}



Re: Reaction Text - Avi57 - 13.06.2013

use this :-
pawn Код:
if(strfind(text, "{123456}", true) = -1)
    {
        SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot write this thing !");
        return 0;
    }
pawn Код:
if(strfind(text, "123456", true) != -1)
    {
        SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot write this thing !");
        return 0;
    }
pawn Код:
if(strfind(text, "{", true) != -1)
    {
        SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot write this thing !");
        return 0;
    }



Re: Reaction Text - ReVo_ - 13.06.2013

In my opinion it is better to fix this bug that allows this trick


Re: Reaction Text - Danyels - 13.06.2013

Quote:
Originally Posted by ReVo_
Посмотреть сообщение
In my opinion it is better to fix this bug that allows this trick
and how i can fix this bug?


Re: Reaction Text - ReVo_ - 13.06.2013

Post the code and we will see.


Re: Reaction Text - Danyels - 13.06.2013

this is the script..

http://pastebin.com/5f0pjpWB