unknown commands error
#1

I got a new GM from a friend ,had to fix some missing includes , some "number do not match definitions"errors etc and the server started . The problem is that i cant use any command in-game ,all commands say Uknown Command ,besides that everything works perfectly (there are points where you can enter building and everything the GameMode has to offer ) .


I think this is something globally cause i didnt rly see any problem in the commands .


this is a example of a command ,i dont see anything wrong anyway

pawn Код:
if(strcmp(cmd, "/aparkcar", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new Float:x,Float:y,Float:z;
            new Float:a;
            new carid;
            carid = GetPlayerVehicleID(playerid);
            GetPlayerName(playerid, playername, sizeof(playername));
            GetVehiclePos(carid, x, y, z);
            GetVehicleZAngle(carid, a);
            if(PlayerInfo[playerid][pAdmin] >= 1339)
            {
                CarInfo[carid][cLocationx] = x;
                CarInfo[carid][cLocationy] = y;
                CarInfo[carid][cLocationz] = z;
                CarInfo[carid][cAngle] = a;
                format(string, sizeof(string), "~n~ You have parked your car in this location. ~n~");
                GameTextForPlayer(playerid, "You have parked this car in this position. It will respawn here.", 10000, 3);
                OnPropUpdate();
                DestroyVehicle(carid);
                CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
                format(string, sizeof(string), "[AdmWarning]: %s a folosit comanda /apark.",playername);
                ABroadCast(COLOR_LIGHTRED,string, 5);
                return 1;
            }
            else
            {
                SCM(playerid, COLOR_GREY, "   You are not authorized to use that command !");
                return 1;
            }
        }
        return 1;
    }

thx in advance
Reply
#2

bump,nobody ?
Reply
#3

Does all your commands say unknown command?
Reply
#4

yep ,all of them ,actually i added a command that surely works (from another GM ) and it says the same ,unknown command
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)