23.01.2012, 22:03
(
Последний раз редактировалось Typhome; 25.01.2012 в 19:19.
)
// Problem solved.
new array[4];
// In your command:
array[9] = 1;
'SERVER: Unknown Command' is caused by you trying to set an array value that doesn't exist, for example:
pawn Код:
Use this to guide debug it: https://sampwiki.blast.hk/wiki/Debugging |
print("debug 5");
new string[x];
format(string, "blah", var);
SendClientMessage();
someArray[playerid]++;
print("debug 6");
print("debug 1");
new string[x];
format(string, "blah", var);
print("debug 2");
SendClientMessage();
print("debug 3");
someArray[playerid]++;
print("debug 4 (end)");