SERVER: Unknown command.
#1

I added someone's map, a "Color List" with ShowPlayerDialog and on the OnplayerText and all my commands are Uknown commands. Please help me. Is anything wrong with it or why this happened.
Here is the map
pawn Код:
CreateObject(3749, -1211.2635498047, -1066.4284667969, 133.12403869629, 0, 0, 0);
    CreateObject(987, -1201.2421875, -1066.3028564453, 127.94700622559, 0, 0, 5);
    CreateObject(987, -1189.4873046875, -1065.287109375, 128.21875, 0, 0, 5);
    CreateObject(987, -1177.6896972656, -1064.2585449219, 128.21875, 0, 0, 5);
    CreateObject(987, -1165.7341308594, -1063.2009277344, 128.21875, 0, 0, 5);
    CreateObject(987, -1154.1378173828, -1062.2946777344, 128.21875, 0, 0, 5);
    CreateObject(987, -1142.2889404297, -1061.2111816406, 128.21875, 0, 0, 5);
    CreateObject(8171, -1074.5849609375, -1018.9274291992, 128.21875, 0, 0, 90);
    CreateObject(3491, -1036.3739013672, -970.076171875, 136.76406860352, 0, 0, 0);
    CreateObject(3491, -1105.6334228516, -970.33245849609, 136.76406860352, 0, 0, 0);
    CreateObject(17008, -1021.9805908203, -1047.5767822266, 134.33346557617, 0, 0, 90);
    CreateObject(3776, -1174.2934570313, -958.7919921875, 137.26756286621, 0, 0, 0);
    CreateObject(3776, -1174.8258056641, -988.10125732422, 137.27438354492, 0, 0, 0);
    CreateObject(987, -1130.6663818359, -1060.4167480469, 128.21875, 0, 0, 0);
    CreateObject(987, -1118.6704101563, -1060.4279785156, 128.21875, 0, 0, 0);
    CreateObject(987, -1107.1010742188, -1060.3140869141, 128.21875, 0, 0, 0);
    CreateObject(987, -1095.1198730469, -1060.2526855469, 128.21192932129, 0, 0, 0);
    CreateObject(987, -1083.1235351563, -1060.2155761719, 128.21192932129, 0, 0, 0);
    CreateObject(987, -1071.4267578125, -1060.2585449219, 128.21192932129, 0, 0, 0);
    CreateObject(987, -1059.8079833984, -1060.1071777344, 128.21192932129, 0, 0, 0);
    CreateObject(987, -1048.3160400391, -1059.8734130859, 128.21192932129, 0, 0, 0);
    CreateObject(987, -1043.3962402344, -1059.5922851563, 128.21192932129, 0, 0, 0);
    CreateObject(987, -1022.1446533203, -1059.6787109375, 128.2427520752, 0, 0, 0);
    CreateObject(987, -1010.1105957031, -1059.6280517578, 128.21875, 0, 0, 0);
    CreateObject(987, -998.01007080078, -1059.7310791016, 128.21875, 0, 0, 90);
    CreateObject(987, -997.99841308594, -1048.0623779297, 128.21875, 0, 0, 90);
    CreateObject(987, -997.97442626953, -1036.0480957031, 128.21260070801, 0, 0, 90);
    CreateObject(987, -998.0224609375, -1024.0925292969, 128.21875, 0, 0, 90);
    CreateObject(987, -997.92590332031, -1012.1099243164, 128.21875, 0, 0, 90);
    CreateObject(987, -997.92663574219, -1000.2733764648, 128.21875, 0, 0, 135);
    CreateObject(987, -1003.7700195313, -941.43841552734, 128.21875, 0, 0, 90);
    CreateObject(987, -1003.7994384766, -929.60339355469, 128.21875, 0, 0, 90);
    CreateObject(987, -1003.8408203125, -923.13946533203, 128.21875, 0, 0, 90);
    CreateObject(987, -1003.8033447266, -911.51098632813, 128.21875, 0, 0, 180);
    CreateObject(987, -1015.7863769531, -911.50836181641, 128.21875, 0, 0, 180);
    CreateObject(987, -1027.7248535156, -911.55261230469, 128.21875, 0, 0, 180);
    CreateObject(987, -1039.6734619141, -911.62762451172, 128.21875, 0, 0, 180);
    CreateObject(987, -1051.6280517578, -911.62377929688, 128.21192932129, 0, 0, 180);
    CreateObject(987, -1063.5782470703, -911.67065429688, 128.21192932129, 0, 0, 180);
    CreateObject(987, -1075.4919433594, -911.66583251953, 128.21875, 0, 0, 180);
    CreateObject(987, -1087.3056640625, -911.79876708984, 128.21875, 0, 0, 180);
    CreateObject(987, -1099.26953125, -911.85034179688, 128.21875, 0, 0, 180);
    CreateObject(987, -1111.189453125, -911.85998535156, 128.21875, 0, 0, 180);
    CreateObject(987, -1123.0311279297, -912.01690673828, 128.21875, 0, 0, 180);
    CreateObject(987, -1134.7142333984, -912.14685058594, 128.21875, 0, 0, 180);
    CreateObject(987, -1146.5035400391, -912.27551269531, 128.21875, 0, 0, 180);
    CreateObject(987, -1158.4077148438, -912.27966308594, 128.21875, 0, 0, 180);
    CreateObject(987, -1170.2740478516, -912.31378173828, 128.21875, 0, 0, 180);
    CreateObject(987, -1182.2598876953, -912.28051757813, 128.21875, 0, 0, 180);
    CreateObject(987, -1194.1574707031, -912.30944824219, 128.11163330078, 0, 0, 180);
    CreateObject(987, -1206.1434326172, -912.3623046875, 128.11302185059, 0, 0, 180);
    CreateObject(987, -1218.2083740234, -912.19653320313, 128.12078857422, 0, 0, 180);
    CreateObject(9241, -1179.4748535156, -930.36895751953, 130.27764892578, 0, 0, 180);
    CreateObject(1774, -1070.6794433594, -914.08227539063, 129.02781677246, 0, 0, 0);
    CreateObject(1774, -1068.9207763672, -914.02819824219, 129.02781677246, 0, 0, 0);
    CreateObject(1774, -1064.8880615234, -914.02062988281, 129.02781677246, 0, 0, 0);
    CreateObject(1774, -1062.3359375, -914.34875488281, 130.58094787598, 0, 0, 0);
    CreateObject(1774, -1060.7056884766, -913.92572021484, 129.02099609375, 0, 0, 0);
    CreateObject(1774, -1059.0239257813, -913.89312744141, 129.02099609375, 0, 0, 0);
    CreateObject(1774, -1057.3006591797, -914.28985595703, 130.58094787598, 0, 0, 0);
    CreateObject(1774, -1054.9797363281, -914.0068359375, 129.02099609375, 0, 0, 0);
    CreateObject(1774, -1050.9869384766, -914.05194091797, 129.02099609375, 0, 0, 0);
    CreateObject(1774, -1049.8975830078, -914.05383300781, 129.02099609375, 0, 0, 0);
    CreateObject(1774, -1048.7724609375, -914.05377197266, 129.02099609375, 0, 0, 0);
    CreateObject(18257, -1064.3596191406, -932.80688476563, 128.21875, 0, 0, 0);
    CreateObject(2932, -1075.5756835938, -916.85333251953, 129.67066955566, 0, 0, 0);
    CreateObject(2991, -1075.8928222656, -922.93182373047, 128.84648132324, 0, 0, 90);
    CreateObject(2991, -1073.8122558594, -927.24835205078, 128.84648132324, 0, 0, 45);
    CreateObject(1337, -1074.7897949219, -925.61309814453, 128.86798095703, 0, 0, 0);
    CreateObject(1365, -1059.1962890625, -929.90026855469, 129.36166381836, 0, 0, 0);
    CreateObject(1299, -1054.3836669922, -930.46356201172, 128.67460632324, 0, 0, 0);
    CreateObject(1299, -1050.8569335938, -930.36761474609, 128.67460632324, 0, 0, 0);
    CreateObject(3594, -1047.0216064453, -927.62194824219, 128.84992980957, 0, 0, 0);
    CreateObject(3593, -1043.4842529297, -927.900390625, 128.92892456055, 0, 0, 0);
    CreateObject(1236, -1044.2106933594, -922.53186035156, 128.88146972656, 0, 0, 0);
    CreateObject(1236, -1044.1164550781, -920.25933837891, 128.88146972656, 0, 0, 0);
    CreateObject(12957, -1044.6684570313, -915.37487792969, 129.09696960449, 0, 0, 0);
    CreateObject(3279, -1010.1099853516, -918.92022705078, 128.21264648438, 0, 0, 0);
    CreateObject(3279, -1116.90625, -916.29193115234, 128.21875, 0, 0, 0);
    CreateObject(3279, -1210.0183105469, -916.00463867188, 128.00810241699, 0, 0, 0);
    CreateObject(3279, -1193.2762451172, -1060.4195556641, 128.21875, 0, 0, 0);
    CreateObject(3279, -1066.7595214844, -1055.5096435547, 128.21875, 0, 0, 0);
    CreateObject(2892, -1091.9404296875, -917.39398193359, 128.21875, 0, 0, 0);
    CreateObject(2892, -1093.8811035156, -936.66412353516, 128.21875, 0, 0, 0);
    CreateObject(2929, -1108.0452880859, -941.40356445313, 130.01078796387, 0, 0, 0);
    CreateObject(2985, -1108.1571044922, -937.28436279297, 128.21875, 0, 0, 270);
    CreateObject(2977, -1109.8139648438, -937.49926757813, 128.21875, 0, 0, 0);
    CreateObject(3789, -1112.3603515625, -937.62432861328, 128.55842590332, 0, 0, 0);
    CreateObject(3790, -1112.3941650391, -937.61755371094, 129.04479980469, 0, 0, 0);
    CreateObject(360, -1069.6104736328, -933.642578125, 131.15145874023, 0, 0, 0);
    CreateObject(947, -1032.8748779297, -940.8291015625, 130.42167663574, 0, 0, 0);
    CreateObject(947, -1032.7863769531, -912.89593505859, 130.42167663574, 0, 0, 180);
    CreateObject(3277, -1048.388671875, -1051.1694335938, 128.21192932129, 0, 0, 0);
    CreateObject(3267, -1047.80078125, -1051.1652832031, 128.71192932129, 0, 0, 180);
Here is the Color List
pawn Код:
if (strcmp(cmdtext, "/color", true, 10) == 0) {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Color List", "Blue\nCyan\nDarkred\nGreen\nGrey\nLightblue\nLimegreen\nOrange\nPink\nPurple\nRed\nWhite\nYellow", "Select", "Cancel");
        return 1;
    }
pawn Код:
if(dialogid == 2) {
        if(response) {
            if(listitem == 0) {
                SetPlayerColor(playerid, 0x0000FEFF);
            }
            if(listitem == 1) {
                SetPlayerColor(playerid, 0x00FFFEFF);
            }
            if(listitem == 2) {
                SetPlayerColor(playerid, 0x960000FF);
            }
            if(listitem == 3) {
                SetPlayerColor(playerid, 0x009600FF);
            }
            if(listitem == 4) {
                SetPlayerColor(playerid, 0x969696FF);
            }
            if(listitem == 5) {
                SetPlayerColor(playerid, 0x0096FFFF);
            }
            if(listitem == 6) {
                SetPlayerColor(playerid, 0x00FF00FF);
            }
            if(listitem == 7) {
                SetPlayerColor(playerid, 0xFF9600FF);
            }
            if(listitem == 8) {
                SetPlayerColor(playerid, 0xFF00FFFF);
            }
            if(listitem == 9) {
                SetPlayerColor(playerid, 0x9600FFFF);
            }
            if(listitem == 10) {
                SetPlayerColor(playerid, 0xFF0000FF0);
            }
            if(listitem == 11) {
                SetPlayerColor(playerid, 0xFFFFFFFF);
            }
            if(listitem == 12) {
                SetPlayerColor(playerid, 0xFFFF00FF0);
            }
        }
        return 1;
    }
Here OnPlayerText
pawn Код:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), " (%d): %s", playerid, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0;
}
Reply
#2

I deleted them and still Unknown commands, please
I will lost 70 cmds
Reply
#3

Damn bel beat me to it..
Reply
#4

Quote:
Originally Posted by belhot1992
Посмотреть сообщение
The samp public function should be called OnPlayerCommandText not OnPlayerText.
I believe that's why your commands are not being recognized.
I am talking about this
pawn Код:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0; // ignore the default text and send the custom one
}
But I found a copy of the gamemode and paste the cmds there and work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)