<<<<<<<<helppp>>>>>>>>>>>>
#1

Код:
public OnPlayerText(playerid, text[])
	{
 		for(new i; i < sizeof(SwearWords); i++)
    {
		if(strfind(text, SwearWords[i], true) != -1) // IF you want SwearWords not to be case sensitiv change ' true ' to ' false '
    {
    	SendClientMessage(playerid, Red, "Please don't swear.");
		return 1;
	}
 	}
  		return 1;
  	}
		if(ismuted[playerid])
        SendClientMessage(playerid, 0xFF00CC, "You are muted");
        return 0;
    {
	 	return 1;
	}
And im Getting

Код:
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(224) : error 010: invalid function or declaration
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(226) : error 010: invalid function or declaration
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(228) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    for(new i; i < sizeof(SwearWords); i++)
    {
        if(strfind(text, SwearWords[i], true) != -1) // IF you want SwearWords not to be case sensitiv change ' true ' to ' false '
        {
            SendClientMessage(playerid, Red, "Please don't swear.");
            return 1;
        }
    }
    if(ismuted[playerid])
    {
        SendClientMessage(playerid, 0xFF00CC, "You are muted");
        return 0;
    }
    return 1;
}
Try this, also try to keep your codes indented: is way more organized for yourself, but also for everyone else
Reply
#3

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
pawn Код:
public OnPlayerText(playerid, text[])
{
    for(new i; i < sizeof(SwearWords); i++)
    {
        if(strfind(text, SwearWords[i], true) != -1) // IF you want SwearWords not to be case sensitiv change ' true ' to ' false '
        {
            SendClientMessage(playerid, Red, "Please don't swear.");
            return 1;
        }
    }
    if(ismuted[playerid])
    {
        SendClientMessage(playerid, 0xFF00CC, "You are muted");
        return 0;
    }
    return 1;
}
Try this, also try to keep your codes indented: is way more organized for yourself, but also for everyone else
Great It Worked! THank You!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)