Pawno Stopped Working
#1

Oki, If i compile my script it said ''stopped working''
I use windows xp so not needed to run as admin.
I use Bracketfix BETA. It said in this line is an error:
Код:
	CreateDynamicObject(9822,-748.67614746,2585.81518555,10016.30566406,0.00000000,0.00000000,267.50000000); //object(shpbridge_sfw08) (1)
But for me it's good.

I edited before OnPlayerText:

Код:
public OnRconLoginAttempt(ip[], password[], success) {
 new plip[MAX_PLAYER_IP], playerid;
 foreach(Player, i) {
  GetPlayerIp(i, plip, sizeof(plip));
  if(strcmp(plip, ip) == 0) {
   playerid = i;
  }
 }
}
 if(success) {
  if(PlayerInfo[playerid][pAdmin] < 99998) Kick(playerid);
   else {
     if(RconAttempts[playerid] < 3) RconAttempts[playerid]++;
     else Kick(playerid);
 }
 return 1;
}

public OnPlayerText(playerid, text[])
{
 if(gPlayerLogged{playerid} != 1)
 {
  SendClientMessageEx(playerid, COLOR_RED, "You are not logged in.");
  return 0;
 }
  for(new i = 0; i < sizeof(restrictedWords); i++) {
     if(strfind(text, restrictedWords[i], true) != -1) {
         new plip[MAX_PLAYER_IP];
         GetPlayerIp(playerid, plip, sizeof(plip));
         AddBan(plip);
  }
 }
}
	if(TextSpamUnmute[playerid] != 0)
	{
		if(PlayerInfo[playerid][pAdmin] < 2)
		{
			SendClientMessage(playerid, COLOR_WHITE, "You are muted from submitting text right now.");
			return 0;
		}
	}

	if(PlayerInfo[playerid][pAdmin] < 2)
	{
		TextSpamTimes[playerid]++;

		if(TextSpamTimes[playerid] == 5)
		{
			TextSpamTimes[playerid] = 0;
			TextSpamUnmute[playerid] = 10;
			SendClientMessageEx(playerid, COLOR_YELLOW, "You have been muted automatically for spamming. Please wait 10 seconds and try again.");
			SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_FLOODPROTECTION);
			return 0;
		}
	}
Is Somethng Wrong With That?
Reply


Messages In This Thread
Pawno Stopped Working - by Lisaax - 30.03.2013, 16:11
Re: Pawno Stopped Working - by Vince - 30.03.2013, 16:30
Re: Pawno Stopped Working - by MrTinder - 30.03.2013, 16:34
Re: Pawno Stopped Working - by Lisaax - 30.03.2013, 19:39
Re: Pawno Stopped Working - by SilverKiller - 30.03.2013, 19:45
Re: Pawno Stopped Working - by Lisaax - 30.03.2013, 19:56
Re: Pawno Stopped Working - by SilverKiller - 30.03.2013, 19:58
Re: Pawno Stopped Working - by Lisaax - 30.03.2013, 20:03

Forum Jump:


Users browsing this thread: 2 Guest(s)