Unknown Command
#7

Yes. When i do /stats it gives me this
Код:
[17:28:14] [zcmd] [Tony Turado]: /kick
[17:28:17] [zcmd] [Tony Turado]: /stats
[17:28:17] [debug] Run time error 4: "Array index out of bounds"
[17:28:17] [debug]  Accessing element at index 13999 past array upper bound 1399
[17:28:17] [debug] AMX backtrace:
[17:28:17] [debug] #0 000a8140 in ShowStats (playerid=0, targetid=0) at C:\Users\JakkenKoppen\Desktop\NEW Bone County Script\gamemodes\UGRP.pwn:15954
[17:28:17] [debug] #1 002c4fa0 in public cmd_stats (playerid=0, params[]=@0x02099438 "") at C:\Users\JakkenKoppen\Desktop\NEW Bone County Script\gamemodes\UGRP.pwn:35675
[17:28:17] [debug] #2 native CallLocalFunction () [00471ef0] from samp-server.exe
[17:28:17] [debug] #3 0000dc64 in public OnPlayerCommandText (playerid=0, cmdtext[]=@0x0209941c "/stats") at C:\Users\JakkenKoppen\Desktop\NEW Bone County Script\pawno\include\ZCMD.inc:102
BUt when i do /kick it dosent show up even its in the Script here is the /kick

Код:
CMD:kick(playerid, params[])
{
	if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)
	{
		new string[128], giveplayerid, reason[64];
		if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /kick [player] [reason]");

		if(IsPlayerConnected(giveplayerid))
		{
			if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin] && (PlayerInfo[giveplayerid][pHelper] >= 2 || PlayerInfo[giveplayerid][pAdmin] > 0) && playerid != giveplayerid)
			{
				format(string, sizeof(string), "AdmCmd: %s has been auto-kicked, reason: Trying to /kick a higher admin.", GetPlayerNameEx(playerid));
				ABroadCast(COLOR_YELLOW,string, (PlayerInfo[playerid][pAdmin] == 1) ? (1) : (2));
				KickEx(playerid);
				return 1;
			}
			else
			{
				new playerip[32];
				GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
				format(string, sizeof(string), "AdmCmd: %s (IP:%s) was kicked by %s, reason: %s", GetPlayerNameEx(giveplayerid), playerip, GetPlayerNameEx(playerid), reason);
				Log("logs/kick.log", string);
				if(PlayerInfo[playerid][pAdmin] == 1) Log("logs/moderator.log", string);
				format(string, sizeof(string), "AdmCmd: %s was kicked by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
				SendClientMessageToAllEx(COLOR_LIGHTRED, string);
				KickEx(giveplayerid);
			}
			return 1;
		}
	}
	else SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
	return 1;
}
Reply


Messages In This Thread
Unknown Command - by TonyNames - 31.12.2013, 21:09
Re: Unknown Command - by CutX - 31.12.2013, 21:11
Re: Unknown Command - by TonyNames - 01.01.2014, 14:07
Re: Unknown Command - by Konstantinos - 01.01.2014, 14:11
Re: Unknown Command - by TonyNames - 01.01.2014, 14:26
Re: Unknown Command - by Konstantinos - 01.01.2014, 14:37
Re: Unknown Command - by TonyNames - 01.01.2014, 15:19
Re: Unknown Command - by TonyNames - 01.01.2014, 15:45
Re: Unknown Command - by Konstantinos - 01.01.2014, 15:50
Re: Unknown Command - by TonyNames - 01.01.2014, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)