Reaction Text
#1

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;
	}
Reply
#2

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;
    }
Reply
#3

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

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?
Reply
#5

Post the code and we will see.
Reply
#6

this is the script..

http://pastebin.com/5f0pjpWB
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)