CommandText Bug
#1

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 ?
Reply
#2

I love this forum for quick answers xD
Reply
#3

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

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
Reply
#5

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

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

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

got any includes?
Reply
#9

Only
#include <a_samp> in this FS
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)