SA-MP Forums Archive
Command /apark not work, Help Me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Command /apark not work, Help Me (/showthread.php?tid=465586)



Command /apark not work, Help Me - tristtok - 23.09.2013

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;
    }



Re: Command /apark not work, Help Me - benjaminjones - 23.09.2013

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;
    }



Re: Command /apark not work, Help Me - tristtok - 23.09.2013

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.


Re: Command /apark not work, Help Me - benjaminjones - 23.09.2013

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;
    }



Re: Command /apark not work, Help Me - tristtok - 23.09.2013

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 '-'


Re: Command /apark not work, Help Me - Dubya - 23.09.2013

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


Re: Command /apark not work, Help Me - Brandon_More - 23.09.2013

Код:
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;
}