SERVER: Unknown command.
#1

// Problem solved.
Reply
#2

If you get a "SERVER: Unknown command." in a command, the command have a buffer overflow.
Reply
#3

// Problem solved.
Reply
#4

Quote:
Originally Posted by iDarkRain
Посмотреть сообщение
If you get a "SERVER: Unknown command." in a command, the command have a buffer overflow.
If he's using sscanf, which he's not...
Reply
#5

// Problem solved.
Reply
#6

Change
if(strcmp(cmd, "/teetхke", true)==0)
to
if(strcmp(cmd, "/teetoke", true)==0)
Reply
#7

'SERVER: Unknown Command' is caused by you trying to set an array value that doesn't exist, for example:

pawn Код:
new array[4];

// In your command:
array[9] = 1;
Or could possibly be other things.

Use this to guide debug it: https://sampwiki.blast.hk/wiki/Debugging
Reply
#8

// Problem solved.
Reply
#9

I really wish people didn't fucking ignore my posts, kinda sick of quoting myself.

Quote:
Originally Posted by MP2
Посмотреть сообщение
'SERVER: Unknown Command' is caused by you trying to set an array value that doesn't exist, for example:

pawn Код:
new array[4];

// In your command:
array[9] = 1;
Or could possibly be other things.

Use this to guide debug it: https://sampwiki.blast.hk/wiki/Debugging
If you have this code:

pawn Код:
print("debug 5");
new string[x];
format(string, "blah", var);
SendClientMessage();
someArray[playerid]++;
print("debug 6");
You then need to do this to further narrow down the problem and find the exact line:

pawn Код:
print("debug 1");
new string[x];
format(string, "blah", var);
print("debug 2");
SendClientMessage();
print("debug 3");
someArray[playerid]++;
print("debug 4 (end)");
Reply
#10

// Problem solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)