SA-MP Forums Archive
CommandText Bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CommandText Bug (/showthread.php?tid=303611)



CommandText Bug - Jefff - 14.12.2011

Its possible? I have this in 0.3c and now 0.3d.

Код:
[11:36:53] [ERROR] 65535 types /skate
[21:46:40] [ERROR] 65535 types /ok
[21:46:40] [ERROR] 65535 types /solo 8
[21:46:40] [ERROR] 65535 types /lock
[21:46:40] [ERROR] 65535 types /lv
[21:46:40] [ERROR] 65535 types /v cheetah
Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
	if(playerid == 65535) {
		printf("[ERROR] %d types %s",playerid,cmdtext);
		return 1;
	}
....
How ID 65565 can type a cmd? its a player lost connection ?


Re: CommandText Bug - Jefff - 15.12.2011

I love this forum for quick answers xD


Re: CommandText Bug - KoczkaHUN - 15.12.2011

What includes are you using which can affect OnPlayerCommandText? Also, IIRC 65535 is INVALID_PLAYER_ID.


Re: CommandText Bug - Jefff - 15.12.2011

Its normal FS without IRC or any other plugins, and its very serious bug, under Ive
if(array[playerid]) return SCM(U cat use cmds....
so playerid > 65565 = array indeks of out bounds


Re: CommandText Bug - Jefff - 16.12.2011

No ! I want to know how id 65565 can type a commands.


Re: CommandText Bug - Rob_Maate - 16.12.2011

INVALID_PLAYER_ID cannot type a command. The maximum ID currently on SA-MP is 800


Re: CommandText Bug - [O.z]Caroline - 16.12.2011

pawn Код:
if(playerid == 0xFFFF)
     return printf("[ERROR]: %d CMD: %s", playerid, cmdtext), 0;



Re: CommandText Bug - Kar - 16.12.2011

got any includes?


Re: CommandText Bug - Jefff - 16.12.2011

Only
#include <a_samp> in this FS


Re: CommandText Bug - [ABK]Antonio - 16.12.2011

pawn Код:
OnPlayerConnect(playerid)
{
    if(playerid > MAX_PLAYERS) kick(playerid);
}