Command /apark not work, Help Me
#1

Command /apark not work,When I put /apark appears: Server: Unknown Command, Help me.
Credits CMD: DanishHaq


This command is used for administrators park cars the Dealership.

pawn Код:
if (strcmp("/apark", cmdtext, true, 10) == 0)
    {
        GetPlayerName(playerid, sendername, 256);
            if (PlayerInfo[playerid][pAdmin] >= MASTER)
            {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle.");
        new vehicle = GetPlayerVehicleID(playerid);
        new Float:x, Float:y, Float:z, Float:c;
        GetVehiclePos(vehicle, Float:x, Float:y, Float:z);
        GetVehicleZAngle(vehicle, Float:c);
        CarInfo[vehicle][cLocationx] = x;
        CarInfo[vehicle][cLocationy] = y;
        CarInfo[vehicle][cLocationz] = z;
        CarInfo[vehicle][cAngle] = c;
        SaveCars();
        return 1;
    }
Reply
#2

pawn Код:
if(strcmp(cmd, "/apark", true) == 0)
    {
        GetPlayerName(playerid, sendername, 256);
            if (PlayerInfo[playerid][pAdmin] >= MASTER)
            {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle.");
        new vehicle = GetPlayerVehicleID(playerid);
        new Float:x, Float:y, Float:z, Float:c;
        GetVehiclePos(vehicle, Float:x, Float:y, Float:z);
        GetVehicleZAngle(vehicle, Float:c);
        CarInfo[vehicle][cLocationx] = x;
        CarInfo[vehicle][cLocationy] = y;
        CarInfo[vehicle][cLocationz] = z;
        CarInfo[vehicle][cAngle] = c;
        SaveCars();
        return 1;
    }
Reply
#3

Quote:
Originally Posted by benjaminjones
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/apark", true) == 0)
    {
        GetPlayerName(playerid, sendername, 256);
            if (PlayerInfo[playerid][pAdmin] >= MASTER)
            {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle.");
        new vehicle = GetPlayerVehicleID(playerid);
        new Float:x, Float:y, Float:z, Float:c;
        GetVehiclePos(vehicle, Float:x, Float:y, Float:z);
        GetVehicleZAngle(vehicle, Float:c);
        CarInfo[vehicle][cLocationx] = x;
        CarInfo[vehicle][cLocationy] = y;
        CarInfo[vehicle][cLocationz] = z;
        CarInfo[vehicle][cAngle] = c;
        SaveCars();
        return 1;
    }
Gave 26 errors in other different things.
Reply
#4

pawn Код:
if (strcmp(cmd, "/apark", true) == 0)
    {
        GetPlayerName(playerid, sendername, 256);
            if (PlayerInfo[playerid][pAdmin] >= MASTER)
            {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle.");
        new vehicle = GetPlayerVehicleID(playerid);
        new Float:x, Float:y, Float:z, Float:c;
        GetVehiclePos(vehicle, Float:x, Float:y, Float:z);
        GetVehicleZAngle(vehicle, Float:c);
        CarInfo[vehicle][cLocationx] = x;
        CarInfo[vehicle][cLocationy] = y;
        CarInfo[vehicle][cLocationz] = z;
        CarInfo[vehicle][cAngle] = c;
        SaveCars();
        return 1;
    }
Reply
#5

Quote:
Originally Posted by benjaminjones
Посмотреть сообщение
pawn Код:
if (strcmp(cmd, "/apark", true) == 0)
    {
        GetPlayerName(playerid, sendername, 256);
            if (PlayerInfo[playerid][pAdmin] >= MASTER)
            {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle.");
        new vehicle = GetPlayerVehicleID(playerid);
        new Float:x, Float:y, Float:z, Float:c;
        GetVehiclePos(vehicle, Float:x, Float:y, Float:z);
        GetVehicleZAngle(vehicle, Float:c);
        CarInfo[vehicle][cLocationx] = x;
        CarInfo[vehicle][cLocationy] = y;
        CarInfo[vehicle][cLocationz] = z;
        CarInfo[vehicle][cAngle] = c;
        SaveCars();
        return 1;
    }
Even with 26 errors '-'
Reply
#6

Is your Admin Level the same, or higher than 'Master' ?
Reply
#7

Код:
if (strcmp("/apark", cmdtext, true, 10) == 0)
{
    GetPlayerName(playerid, sendername, 256);
    if (PlayerInfo[playerid][pAdmin] >= MASTER)
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle.");
        new vehicle = GetPlayerVehicleID(playerid);
        new Float:x, Float:y, Float:z, Float:c;
        GetVehiclePos(vehicle, Float:x, Float:y, Float:z);
        GetVehicleZAngle(vehicle, Float:c);
        CarInfo[vehicle][cLocationx] = x;
        CarInfo[vehicle][cLocationy] = y;
        CarInfo[vehicle][cLocationz] = z;
        CarInfo[vehicle][cAngle] = c;
        SaveCars();
    }
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)