29.09.2010, 16:42
pawn Код:
public OnPlayerText(playerid, text[])
{
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new string[128];
new tmp[128];
new ip[256]
new cmd[256];
if(PlayerInfo[playerid][pHospital] == 1 || CanTalk[playerid] == 0)
{
return 0;
}
#pragma tabsize 0
if(ipmatch(text, ip))
{
SendClientMessage(playerid, COLOR_RED, "You can't advertisement your server.");
format(string, sizeof(string)," ",cmd);
SendFamilyMessage(10, COLOR_YELLOW, string);
return 0;
Anyways, if 192 doesn't work, use 256 cells. It doesn't matter if it takes too much memory because it's to fix a damn error.
Try it now. The reason why the last 2 lines are there is because it's to use cmd so you don't get the error.