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


Messages In This Thread
unknown commands error - by rekatluos - 04.08.2011, 15:43
Re: unknown commands error - by rekatluos - 04.08.2011, 17:38
Re: unknown commands error - by Toreno - 04.08.2011, 17:48
Re: unknown commands error - by rekatluos - 04.08.2011, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)