Quote:
Originally Posted by [uL]Pottus
I'm just saying, you changed your code style in your tutorial.
And this is not correct.
pawn Code:
public OnPlayerText(playerid, text[]) { new string[128]; if(pVar[playerid][pAdminLevel] < 2 && CheckServerAd(text) || pVar[playerid][pAdminLevel] < 2 && CheckServerAd2(text)) { format(string,sizeof(string),"Warning: %s may be server advertising: '%s'.", GetPlayerNameEx(playerid),text); submitToAdmins(string, COLOR_RED); return 0; } return 0; }
It should be this no need for two return 0; statements.
pawn Code:
public OnPlayerText(playerid, text[]) { new string[128]; if(pVar[playerid][pAdminLevel] < 2 && CheckServerAd(text) || pVar[playerid][pAdminLevel] < 2 && CheckServerAd2(text)) { format(string,sizeof(string),"Warning: %s may be server advertising: '%s'.", GetPlayerNameEx(playerid),text); submitToAdmins(string, COLOR_RED); } return 0; }
|
It's like for a specific reason, In my script it is needed, Maybe not for others, but for mine it is. I simply copied and pasted that from my script. People who have a brain will find that it isn't needed and will correct it on their own.