Carmenu (CarSpawner)
#1

Can someone edit a carmenu (carspawner) to this list:
Euros
Elegy
Sultan
Jester
Bullet
Infernus
Turismo

I have a drift server and current car spawners have bikes and planes and i don't like it.

THANK YOU !!
Reply
#2

There's a script requests thread for a reason.

If you do post in there, attach the code you currently have for your "carmenu (carspawner)."
Reply
#3

Код:
#include <a_samp>
new Menu:CarMenu;
new Menu:CarMenu2;
new Menu:CarMenu3;
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xCC0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA

#pragma tabsize 0
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()

{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");

    CarMenu = CreateMenu("CarMenu", 1, 200.0, 100.0, 150.0, 150.0);

    AddMenuItem(CarMenu, 0, "Infernus");
    AddMenuItem(CarMenu, 0, "Sultan");
    AddMenuItem(CarMenu, 0, "Blade");
    AddMenuItem(CarMenu, 0, "Cheetah");
    AddMenuItem(CarMenu, 0, "Elegy");
    AddMenuItem(CarMenu, 0, "Comet");
    AddMenuItem(CarMenu, 0, "Bikes & stuff");
    AddMenuItem(CarMenu, 0, "Nrg-500");
    AddMenuItem(CarMenu, 0, "quad-bike");
    AddMenuItem(CarMenu, 0, "pcj-600");
    AddMenuItem(CarMenu, 0, "pizza-bike");
    AddMenuItem(CarMenu, 0, "Next");

CarMenu2 = CreateMenu("CarMenu", 1, 200.0, 100.0, 150.0, 150.0);
    AddMenuItem(CarMenu2, 0, "Go Kart");
    AddMenuItem(CarMenu2, 0, "Dirt Bike");
    AddMenuItem(CarMenu2, 0, "Police bike");
    AddMenuItem(CarMenu2, 0, "freeway");
    AddMenuItem(CarMenu2, 0, "Bmx");
    AddMenuItem(CarMenu2, 0, "bike");
    AddMenuItem(CarMenu2, 0, "MtBike");
    AddMenuItem(CarMenu2, 0, "Planes & Jets and Other");
    AddMenuItem(CarMenu2, 0, "Shamal");
    AddMenuItem(CarMenu2, 0, "Hydra");
    AddMenuItem(CarMenu2, 0, "Hunter");
    AddMenuItem(CarMenu2, 0, "More");
CarMenu3 = CreateMenu("CarMenu", 1, 200.0, 100.0, 150.0, 150.0);
    AddMenuItem(CarMenu3, 0, "Vortex");
    AddMenuItem(CarMenu3, 0, "Monster Truck");
    AddMenuItem(CarMenu3, 0, "Monster Truck2");
    AddMenuItem(CarMenu3, 0, "back");
		return 1;
}

public OnFilterScriptExit()
{



        return 1;
}

#else

main()
{
        print("\n----------------------------------");
        print(" Blank Gamemode by your name here");
        print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{


return 1;
}

public OnGameModeExit()
{
        return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        return 1;
}

public OnPlayerRequestSpawn(playerid)
{
        return 1;
}

public OnPlayerConnect(playerid)
{
        return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
        return 1;
}

public OnPlayerSpawn(playerid)
{

return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
        return 1;
}

public OnVehicleSpawn(vehicleid)
{
        return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
        return 1;
}

public OnPlayerText(playerid, text[])
{
        return 1;
}

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])

{
if (strcmp(cmdtext, "/CarMenu",true)==0)
	{
	    if(!IsPlayerInAnyVehicle(playerid))
	    {
			ShowMenuForPlayer(CarMenu,playerid);
		}
		else
		{
			SendClientMessage(playerid,0xFFFFFFFF,"You are already in a vehicle");
		}
		return 1;


}
		if (strcmp(cmdtext, "/credits",true)==0)
	{
	SendClientMessage(playerid,COLOR_YELLOW,"**********Car Filterscript************");
	SendClientMessage(playerid,COLOR_YELLOW,"Filterscript made by Cale And Abhishek");
return 1;}

return 0;
}

public OnPlayerInfoChange(playerid)
{
        return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
        return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
        return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
        return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
        return 1;
}

public OnRconCommand(cmd[])
{
        return 1;
}

public OnObjectMoved(objectid)
{
        return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
        return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
        return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
        new Menu:CurrentMenu = GetPlayerMenu(playerid);
        if(CurrentMenu == CarMenu)
        {
        switch(row)

        {


        case 0: //infernus
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(411,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected Infernus");

        }
        case 1: //armour
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(560,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected Sultan");

        }
        case 2: //heal+armour
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(536,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected Blade");

        }
        case 3: //healx2
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(415,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected Cheetah");

        }
        case 4: //armourx2
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(562,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected Elegy");

        }
        case 5: //M4
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(480,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected Comet");

        }
        case 6: //bikes
        {
        SendClientMessage(playerid,0xFFFFFFFF,"Select a Vehicle from the list");
        ShowMenuForPlayer(CarMenu,playerid);

                }
        case 7: //M4
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(522,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected Nrg-500");
                }

case 8: //M4
            {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(471,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected Quad_bike");



            }

            case 9: //next
            {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(461,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected pcj-600");



            }

case 10: //pcj-600
            {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(461,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected pizza bike");


                        }


case 11: //other vehicles
            {

            ShowMenuForPlayer(CarMenu2,playerid);
                        }

                        }
                        }

 if(CurrentMenu == CarMenu2)
        {
        switch(row)

        {


        case 0: //go kart
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(571,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected go kart");

        }
case 1: //dirt bike
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(468,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected a Dirt Bike");

        }

case 2: //police bike
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(523,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected a Police Bike");

        }
case 3:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(463,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected a freeway");

        }
case 4:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(481,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected a BMX bycicle");

        }
case 5:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(509,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected a normal bycicle");

        }
case 6:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(510,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected a Mountain Bike");

        }
case 7: // Planes Jets etc
        {
SendClientMessage(playerid,0xFFFFFFFF,"Please Select a Vehicle from the menu");

        }
case 8:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(519,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected a Shamal");

        }
case 9:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(520,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected a Hydra");

        }
case 10:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(425,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected a Hunter");

        }
case 11:
        {
ShowMenuForPlayer(CarMenu3,playerid);
                }
                }
        }
if(CurrentMenu == CarMenu3)
        {
        switch(row)

        {


        case 0:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(539,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected Vortex");

        }
case 1:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(444,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected Monster Truck");

        }
case 2:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            new car;
            car=CreateVehicle(556,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid,car,0);
            SendClientMessage(playerid, 0xFFFFFFFF, "You Have Selected Monster Truck No.2");

        }
case 3:
        {
         ShowMenuForPlayer(CarMenu2,playerid);
         }
		 }
         }
                    return 1;
         }

public OnPlayerExitedMenu(playerid)
{
        return 1;
}
Reply
#4

pawn Код:
#include <a_samp>
new Menu:CarMenu;
new Menu:CarMenu2;
new Menu:CarMenu3;
new car[MAX_PLAYERS];
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xCC0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA

#pragma tabsize 0
// Hoi! Wat doe jij hier?
// CJ Met zijn supercoole snor does not approYou Have To Be Rcon Admin To Use This Commande!
#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()

{
    print("\n--------------------------------------");
    print(" Auto menu voor Vakonov server          ");
    print(" Door @nickbouwhuis                     ");
    print("--------------------------------------\n");

    CarMenu = CreateMenu("Kies maar!", 1, 200.0, 100.0, 150.0, 150.0);

    AddMenuItem(CarMenu, 0, "Infernus (:D)");
    AddMenuItem(CarMenu, 0, "Sultan");
    AddMenuItem(CarMenu, 0, "Blade");
    AddMenuItem(CarMenu, 0, "Cheetah");
    AddMenuItem(CarMenu, 0, "Elegy");
    AddMenuItem(CarMenu, 0, "Comet");
    AddMenuItem(CarMenu, 0, "-- Motoren en fietsen --");
    AddMenuItem(CarMenu, 0, "NRG-500");
    AddMenuItem(CarMenu, 0, "Quad");
    AddMenuItem(CarMenu, 0, "PCJ-600");
    AddMenuItem(CarMenu, 0, "Pizza scooter");
    AddMenuItem(CarMenu, 0, "Volgende");

CarMenu2 = CreateMenu("Kies maar!", 1, 200.0, 100.0, 150.0, 150.0);
    AddMenuItem(CarMenu2, 0, "Go Kart");
    AddMenuItem(CarMenu2, 0, "Dirt Bike");
    AddMenuItem(CarMenu2, 0, "Police bike");
    AddMenuItem(CarMenu2, 0, "Police Ranger");
    AddMenuItem(CarMenu2, 0, "Police car (LVPD)");
    AddMenuItem(CarMenu2, 0, "Freeway");
    AddMenuItem(CarMenu2, 0, "BMX");
    AddMenuItem(CarMenu2, 0, "Rotfiets");
    AddMenuItem(CarMenu2, 0, "MtBike");
    AddMenuItem(CarMenu2, 0, "Volgende");
CarMenu3 = CreateMenu("Kies maar!", 1, 200.0, 100.0, 150.0, 150.0);
    AddMenuItem(CarMenu3, 0, "Vortex");
    AddMenuItem(CarMenu3, 0, "Monster Truck");
    AddMenuItem(CarMenu3, 0, "Monster Truck 2");
    AddMenuItem(CarMenu3, 0, "Cabbie");
    AddMenuItem(CarMenu2, 0, "-- Vliegtuigen en overige --");
    AddMenuItem(CarMenu2, 0, "Shamal");
    AddMenuItem(CarMenu2, 0, "Hydra");
    AddMenuItem(CarMenu2, 0, "Hunter");
    AddMenuItem(CarMenu3, 0, "Terug");
        return 1;
}

public OnFilterScriptExit()
{



        return 1;
}

#else

main()
{
        print("\n----------------------------------");
        print(" Hoi");
        print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{


return 1;
}

public OnGameModeExit()
{
        return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        return 1;
}

public OnPlayerRequestSpawn(playerid)
{
        return 1;
}

public OnPlayerConnect(playerid)
{
        return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
        return 1;
}

public OnPlayerSpawn(playerid)
{

return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
        return 1;
}

public OnVehicleSpawn(vehicleid)
{
        return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
        return 1;
}

public OnPlayerText(playerid, text[])
{
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])

{
if (strcmp(cmdtext, "/v",true)==0)
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
            ShowMenuForPlayer(CarMenu,playerid);
        }
        else
        {
            SendClientMessage(playerid,0xFFFFFFFF,"Je zit al in een voertuig!");
        }
        return 1;


}
        if (strcmp(cmdtext, "/auto",true)==0)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Het nieuwe commando is /v (V is voor Voertuig)");
return 1;}

return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
        return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
        return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
        return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
        return 1;
}

public OnRconCommand(cmd[])
{
        return 1;
}

public OnObjectMoved(objectid)
{
        return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
        return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
        return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
        new Menu:CurrentMenu = GetPlayerMenu(playerid);
        if(CurrentMenu == CarMenu)
        {
        switch(row)

        {


        case 0: //infernus
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(411,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Infernus!");
            SendClientMessage(playerid, 0xFFFFFFFF, "Maak 'm wel geel he!!");

        }
        case 1: //armour
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(560,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Sultan");

        }
        case 2: //heal+armour
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(536,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Blade");

        }
        case 3: //healx2
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(415,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Cheetah");

        }
        case 4: //armourx2
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(562,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Elegy");

        }
        case 5: //M4
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(480,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Comet");

        }
        case 6: //bikes
        {
        SendClientMessage(playerid,0xFFFFFFFF,"Hahah. Dit is niks :)");
        ShowMenuForPlayer(CarMenu,playerid);

        }
        case 7: //M4
            {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(522,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een NRG-500");
            }

case 8: //M4
            {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(471,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Quad_bike");
            }

case 9: //next
            {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(461,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een PCJ-600");



            }

case 10: //pcj-600
            {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(448,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een pizza scootertje.");
            SendClientMessage(playerid, 0xFFFFFFFF, "Snel! De pizza's worden koud!");


            }


case 11: //other vehicles
            {

            ShowMenuForPlayer(CarMenu2,playerid);
                        }

                        }
                        }

 if(CurrentMenu == CarMenu2)
        {
        switch(row)

        {


case 0: //go kart
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(571,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Go Kart");

        }
case 1: //dirt bike
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(468,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Dirt Bike");

        }

case 2: //police bike
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(523,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Police Bike");

        }
       
case 3: //police ranger
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(599,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Police Ranger");

        }
case 4: //police car
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(598,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een LVPD Politiewagen");

        }
case 5:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(481,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een BMX");

        }
case 6:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(509,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een vervelde rotfiets");
            SendClientMessage(playerid, 0xFFFFFFFF, "Verder alles goed?");

        }
case 7:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(510,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Mountain Bike");

        }


        }
case 8:
        {
ShowMenuForPlayer(CarMenu3,playerid);
                }
                }
        }
if(CurrentMenu == CarMenu3)
        {
        switch(row)

        {


case 0:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(539,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Vortex");

        }
case 1:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(444,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Monster Truck");

        }
case 2:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(556,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Monster Truck No.2");

        }  
case 3:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(438,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Cabbie");

        }
case 4: // Planes Jets etc
        {
SendClientMessage(playerid,0xFFFFFFFF,"Wasmetjou?");
        }
case 5:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(519,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Shamal");

        }
case 6:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(520,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Hydra");

        }
case 7:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(425,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Hunter");
case 8:
        {
         ShowMenuForPlayer(CarMenu2,playerid);
         }
         }
         }
                    return 1;
         }

public OnPlayerExitedMenu(playerid)
{
        return 1;
}
I edited his code, and I'm getting errors, whats wrong?

Errors:
Код:
autos.pwn(238) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(238) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(238) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(238) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(250) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(250) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(250) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(250) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(261) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(261) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(261) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(261) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(272) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(272) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(272) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(272) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(283) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(283) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(283) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(283) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(294) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(294) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(294) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(294) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(311) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(311) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(311) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(311) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(322) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(322) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(322) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(322) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(333) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(333) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(333) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(333) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(347) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(347) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(347) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(347) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(378) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(378) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(378) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(378) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(389) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(389) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(389) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(389) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(401) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(401) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(401) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(401) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(413) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(413) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(413) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(413) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(424) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(424) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(424) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(424) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(435) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(435) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(435) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(435) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(446) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(446) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(446) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(446) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(458) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(458) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(458) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(458) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(470) : error 014: invalid statement; not in switch
autos.pwn(470) : warning 215: expression has no effect
autos.pwn(476) : error 010: invalid function or declaration
autos.pwn(478) : error 010: invalid function or declaration
autos.pwn(480) : error 055: start of function body without function header
autos.pwn(483) : error 010: invalid function or declaration
autos.pwn(486) : error 021: symbol already defined: "GetPlayerFacingAngle"
autos.pwn(488) : error 010: invalid function or declaration
autos.pwn(493) : error 054: unmatched closing brace ("}")
autos.pwn(494) : error 010: invalid function or declaration
autos.pwn(496) : error 021: symbol already defined: "x"
autos.pwn(496) : error 021: symbol already defined: "a"
autos.pwn(499) : error 010: invalid function or declaration
autos.pwn(504) : error 054: unmatched closing brace ("}")
autos.pwn(505) : error 010: invalid function or declaration
autos.pwn(507) : error 021: symbol already defined: "x"
autos.pwn(507) : error 021: symbol already defined: "a"
autos.pwn(510) : error 010: invalid function or declaration
autos.pwn(515) : error 054: unmatched closing brace ("}")
autos.pwn(516) : error 010: invalid function or declaration
autos.pwn(518) : error 021: symbol already defined: "x"
autos.pwn(518) : error 021: symbol already defined: "a"
autos.pwn(521) : error 010: invalid function or declaration
autos.pwn(526) : error 054: unmatched closing brace ("}")
autos.pwn(527) : error 010: invalid function or declaration
autos.pwn(531) : error 010: invalid function or declaration
autos.pwn(533) : error 021: symbol already defined: "x"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#5

Quote:
Originally Posted by nickbouwhuis
Посмотреть сообщение
pawn Код:
#include <a_samp>
new Menu:CarMenu;
new Menu:CarMenu2;
new Menu:CarMenu3;
new car[MAX_PLAYERS];
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xCC0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA

#pragma tabsize 0
// Hoi! Wat doe jij hier?
// CJ Met zijn supercoole snor does not approYou Have To Be Rcon Admin To Use This Commande!
#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()

{
    print("\n--------------------------------------");
    print(" Auto menu voor Vakonov server          ");
    print(" Door @nickbouwhuis                     ");
    print("--------------------------------------\n");

    CarMenu = CreateMenu("Kies maar!", 1, 200.0, 100.0, 150.0, 150.0);

    AddMenuItem(CarMenu, 0, "Infernus (:D)");
    AddMenuItem(CarMenu, 0, "Sultan");
    AddMenuItem(CarMenu, 0, "Blade");
    AddMenuItem(CarMenu, 0, "Cheetah");
    AddMenuItem(CarMenu, 0, "Elegy");
    AddMenuItem(CarMenu, 0, "Comet");
    AddMenuItem(CarMenu, 0, "-- Motoren en fietsen --");
    AddMenuItem(CarMenu, 0, "NRG-500");
    AddMenuItem(CarMenu, 0, "Quad");
    AddMenuItem(CarMenu, 0, "PCJ-600");
    AddMenuItem(CarMenu, 0, "Pizza scooter");
    AddMenuItem(CarMenu, 0, "Volgende");

CarMenu2 = CreateMenu("Kies maar!", 1, 200.0, 100.0, 150.0, 150.0);
    AddMenuItem(CarMenu2, 0, "Go Kart");
    AddMenuItem(CarMenu2, 0, "Dirt Bike");
    AddMenuItem(CarMenu2, 0, "Police bike");
    AddMenuItem(CarMenu2, 0, "Police Ranger");
    AddMenuItem(CarMenu2, 0, "Police car (LVPD)");
    AddMenuItem(CarMenu2, 0, "Freeway");
    AddMenuItem(CarMenu2, 0, "BMX");
    AddMenuItem(CarMenu2, 0, "Rotfiets");
    AddMenuItem(CarMenu2, 0, "MtBike");
    AddMenuItem(CarMenu2, 0, "Volgende");
CarMenu3 = CreateMenu("Kies maar!", 1, 200.0, 100.0, 150.0, 150.0);
    AddMenuItem(CarMenu3, 0, "Vortex");
    AddMenuItem(CarMenu3, 0, "Monster Truck");
    AddMenuItem(CarMenu3, 0, "Monster Truck 2");
    AddMenuItem(CarMenu3, 0, "Cabbie");
    AddMenuItem(CarMenu2, 0, "-- Vliegtuigen en overige --");
    AddMenuItem(CarMenu2, 0, "Shamal");
    AddMenuItem(CarMenu2, 0, "Hydra");
    AddMenuItem(CarMenu2, 0, "Hunter");
    AddMenuItem(CarMenu3, 0, "Terug");
        return 1;
}

public OnFilterScriptExit()
{



        return 1;
}

#else

main()
{
        print("\n----------------------------------");
        print(" Hoi");
        print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{


return 1;
}

public OnGameModeExit()
{
        return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        return 1;
}

public OnPlayerRequestSpawn(playerid)
{
        return 1;
}

public OnPlayerConnect(playerid)
{
        return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
        return 1;
}

public OnPlayerSpawn(playerid)
{

return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
        return 1;
}

public OnVehicleSpawn(vehicleid)
{
        return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
        return 1;
}

public OnPlayerText(playerid, text[])
{
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])

{
if (strcmp(cmdtext, "/v",true)==0)
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
            ShowMenuForPlayer(CarMenu,playerid);
        }
        else
        {
            SendClientMessage(playerid,0xFFFFFFFF,"Je zit al in een voertuig!");
        }
        return 1;


}
        if (strcmp(cmdtext, "/auto",true)==0)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Het nieuwe commando is /v (V is voor Voertuig)");
return 1;}

return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
        return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
        return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
        return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
        return 1;
}

public OnRconCommand(cmd[])
{
        return 1;
}

public OnObjectMoved(objectid)
{
        return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
        return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
        return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
        new Menu:CurrentMenu = GetPlayerMenu(playerid);
        if(CurrentMenu == CarMenu)
        {
        switch(row)

        {


        case 0: //infernus
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(411,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Infernus!");
            SendClientMessage(playerid, 0xFFFFFFFF, "Maak 'm wel geel he!!");

        }
        case 1: //armour
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(560,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Sultan");

        }
        case 2: //heal+armour
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(536,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Blade");

        }
        case 3: //healx2
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(415,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Cheetah");

        }
        case 4: //armourx2
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(562,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Elegy");

        }
        case 5: //M4
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(480,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Comet");

        }
        case 6: //bikes
        {
        SendClientMessage(playerid,0xFFFFFFFF,"Hahah. Dit is niks :)");
        ShowMenuForPlayer(CarMenu,playerid);

        }
        case 7: //M4
            {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(522,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een NRG-500");
            }

case 8: //M4
            {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(471,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Quad_bike");
            }

case 9: //next
            {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(461,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een PCJ-600");



            }

case 10: //pcj-600
            {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(448,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een pizza scootertje.");
            SendClientMessage(playerid, 0xFFFFFFFF, "Snel! De pizza's worden koud!");


            }


case 11: //other vehicles
            {

            ShowMenuForPlayer(CarMenu2,playerid);
                        }

                        }
                        }

 if(CurrentMenu == CarMenu2)
        {
        switch(row)

        {


case 0: //go kart
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(571,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Go Kart");

        }
case 1: //dirt bike
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(468,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Dirt Bike");

        }

case 2: //police bike
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(523,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Police Bike");

        }
       
case 3: //police ranger
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(599,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Police Ranger");

        }
case 4: //police car
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(598,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een LVPD Politiewagen");

        }
case 5:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(481,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een BMX");

        }
case 6:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(509,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een vervelde rotfiets");
            SendClientMessage(playerid, 0xFFFFFFFF, "Verder alles goed?");

        }
case 7:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(510,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Mountain Bike");

        }


        }
case 8:
        {
ShowMenuForPlayer(CarMenu3,playerid);
                }
                }
        }
if(CurrentMenu == CarMenu3)
        {
        switch(row)

        {


case 0:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(539,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Vortex");

        }
case 1:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(444,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Monster Truck");

        }
case 2:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(556,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Monster Truck No.2");

        }  
case 3:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(438,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Cabbie");

        }
case 4: // Planes Jets etc
        {
SendClientMessage(playerid,0xFFFFFFFF,"Wasmetjou?");
        }
case 5:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(519,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Shamal");

        }
case 6:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(520,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Hydra");

        }
case 7:
        {
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerFacingAngle(playerid,a);
            GetPlayerPos(playerid, x, y, z);
            if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
            car[playerid] = CreateVehicle(425,x,y,z+4,a,-1,-1,30000);
            PutPlayerInVehicle(playerid, car[playerid], 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Je selecteerde een Hunter");
case 8:
        {
         ShowMenuForPlayer(CarMenu2,playerid);
         }
         }
         }
                    return 1;
         }

public OnPlayerExitedMenu(playerid)
{
        return 1;
}
I edited his code, and I'm getting errors, whats wrong?

Errors:
Код:
autos.pwn(238) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(238) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(238) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(238) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(250) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(250) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(250) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(250) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(261) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(261) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(261) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(261) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(272) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(272) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(272) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(272) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(283) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(283) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(283) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(283) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(294) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(294) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(294) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(294) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(311) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(311) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(311) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(311) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(322) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(322) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(322) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(322) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(333) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(333) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(333) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(333) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(347) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(347) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(347) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(347) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(378) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(378) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(378) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(378) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(389) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(389) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(389) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(389) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(401) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(401) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(401) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(401) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(413) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(413) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(413) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(413) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(424) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(424) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(424) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(424) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(435) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(435) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(435) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(435) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(446) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(446) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(446) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(446) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(458) : warning 219: local variable "x" shadows a variable at a preceding level
autos.pwn(458) : warning 219: local variable "y" shadows a variable at a preceding level
autos.pwn(458) : warning 219: local variable "z" shadows a variable at a preceding level
autos.pwn(458) : warning 219: local variable "a" shadows a variable at a preceding level
autos.pwn(470) : error 014: invalid statement; not in switch
autos.pwn(470) : warning 215: expression has no effect
autos.pwn(476) : error 010: invalid function or declaration
autos.pwn(478) : error 010: invalid function or declaration
autos.pwn(480) : error 055: start of function body without function header
autos.pwn(483) : error 010: invalid function or declaration
autos.pwn(486) : error 021: symbol already defined: "GetPlayerFacingAngle"
autos.pwn(488) : error 010: invalid function or declaration
autos.pwn(493) : error 054: unmatched closing brace ("}")
autos.pwn(494) : error 010: invalid function or declaration
autos.pwn(496) : error 021: symbol already defined: "x"
autos.pwn(496) : error 021: symbol already defined: "a"
autos.pwn(499) : error 010: invalid function or declaration
autos.pwn(504) : error 054: unmatched closing brace ("}")
autos.pwn(505) : error 010: invalid function or declaration
autos.pwn(507) : error 021: symbol already defined: "x"
autos.pwn(507) : error 021: symbol already defined: "a"
autos.pwn(510) : error 010: invalid function or declaration
autos.pwn(515) : error 054: unmatched closing brace ("}")
autos.pwn(516) : error 010: invalid function or declaration
autos.pwn(518) : error 021: symbol already defined: "x"
autos.pwn(518) : error 021: symbol already defined: "a"
autos.pwn(521) : error 010: invalid function or declaration
autos.pwn(526) : error 054: unmatched closing brace ("}")
autos.pwn(527) : error 010: invalid function or declaration
autos.pwn(531) : error 010: invalid function or declaration
autos.pwn(533) : error 021: symbol already defined: "x"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
You have
Код:
new Float:x, Float:y, Float:z, Float:a;
alreayd using somewhere at the top of your script.
Remove all the
Код:
new Float:x, Float:y, Float:z, Float:a;
in the car spawning part, at onplayeridalog.
Reply
#6

I like it how you just added your own credits to the system whilst you didn't even MAKE it. All you did was edit it (@nick)
Reply
#7

Quote:
Originally Posted by Roel
Посмотреть сообщение
You have
Код:
new Float:x, Float:y, Float:z, Float:a;
alreayd using somewhere at the top of your script.
Remove all the
Код:
new Float:x, Float:y, Float:z, Float:a;
in the car spawning part, at onplayeridalog.
Ok, I did that, but now I get these:
Код:
autos.pwn(238) : error 017: undefined symbol "a"
autos.pwn(239) : error 017: undefined symbol "x"
autos.pwn(241) : error 017: undefined symbol "x"
autos.pwn(249) : error 017: undefined symbol "a"
autos.pwn(250) : error 017: undefined symbol "x"
autos.pwn(252) : error 017: undefined symbol "x"
autos.pwn(259) : error 017: undefined symbol "a"
autos.pwn(260) : error 017: undefined symbol "x"
autos.pwn(262) : error 017: undefined symbol "x"
autos.pwn(269) : error 017: undefined symbol "a"
autos.pwn(270) : error 017: undefined symbol "x"
autos.pwn(272) : error 017: undefined symbol "x"
autos.pwn(279) : error 017: undefined symbol "a"
autos.pwn(280) : error 017: undefined symbol "x"
autos.pwn(282) : error 017: undefined symbol "x"
autos.pwn(289) : error 017: undefined symbol "a"
autos.pwn(290) : error 017: undefined symbol "x"
autos.pwn(292) : error 017: undefined symbol "x"
autos.pwn(305) : error 017: undefined symbol "a"
autos.pwn(306) : error 017: undefined symbol "x"
autos.pwn(308) : error 017: undefined symbol "x"
autos.pwn(315) : error 017: undefined symbol "a"
autos.pwn(316) : error 017: undefined symbol "x"
autos.pwn(318) : error 017: undefined symbol "x"
autos.pwn(325) : error 017: undefined symbol "a"
autos.pwn(326) : error 017: undefined symbol "x"
Do I have define them globally by adding that line to the top? Or?

(Edited code link: http://pastebin.com/zzrT2uuB)
Reply
#8

Bump
Reply
#9

Quote:
Originally Posted by bulgarianmaniacs
Посмотреть сообщение
Can someone edit a carmenu (carspawner) to this list:
Euros
Elegy
Sultan
Jester
Bullet
Infernus
Turismo

I have a drift server and current car spawners have bikes and planes and i don't like it.

THANK YOU !!
Test with this:
Код:
    #include <a_samp>
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(!strcmp(cmdtext, "/carmenu"))
    {
    ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "CarMenu", "Euros\nElegy\nSultan\nJester\nBullet\nInfernus\nTurismo", "Spawn", "Cancel");
    return 1;
    }
    return 0;
    }
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == 7)
    {
    if(!response)
    return 1;
    switch(listitem)
    {
    case 0:
    {
    if(GetPlayerMoney(playerid) < 0)
    return SendClientMessage(playerid, 0, "- The prices is 0$ ! -");
    GivePlayerMoney(playerid, -0);
    CreateVehicle(587, , , 999999);
    }
    case 1:
    {
    if(GetPlayerMoney(playerid) < 0)
    return SendClientMessage(playerid, 0, "- The prices is 0$ ! -");
    GivePlayerMoney(playerid, -0);
    CreateVehicle(562, , , 999999);
    }
    case 2:
    {
    if(GetPlayerMoney(playerid) < 0)
    return SendClientMessage(playerid, 0, "- The prices is 0$ ! -");
    GivePlayerMoney(playerid, -0);
    CreateVehicle(560, , , 999999);
    }
    case 3:
    {
    if(GetPlayerMoney(playerid) < 0)
    return SendClientMessage(playerid, 0, "- The prices is 0$ ! -");
    GivePlayerMoney(playerid, -0);
    CreateVehicle(559, , , 999999);
    }
    case 4:
    {
    if(GetPlayerMoney(playerid) < 0)
    return SendClientMessage(playerid, 0, "- The prices is 0$ ! -");
    GivePlayerMoney(playerid, -0);
    CreateVehicle(541, , , 999999);
    }
    case 5:
    {
    if(GetPlayerMoney(playerid) < 0)
    return SendClientMessage(playerid, 0, "- The prices is 0$ ! -");
    GivePlayerMoney(playerid, -0);
    CreateVehicle(411, , , 999999);
    }
    case 6:
    {
    if(GetPlayerMoney(playerid) < 0)
    return SendClientMessage(playerid, 0, "- The prices is 0$ ! -");
    GivePlayerMoney(playerid, -0);
    CreateVehicle(451, , , 999999);
    }
    }
    }
    return 1;
    }
Reply
#10

Quote:
Originally Posted by nickbouwhuis
Посмотреть сообщение
Ok, I did that, but now I get these:
Код:
autos.pwn(238) : error 017: undefined symbol "a"
autos.pwn(239) : error 017: undefined symbol "x"
autos.pwn(241) : error 017: undefined symbol "x"
autos.pwn(249) : error 017: undefined symbol "a"
autos.pwn(250) : error 017: undefined symbol "x"
autos.pwn(252) : error 017: undefined symbol "x"
autos.pwn(259) : error 017: undefined symbol "a"
autos.pwn(260) : error 017: undefined symbol "x"
autos.pwn(262) : error 017: undefined symbol "x"
autos.pwn(269) : error 017: undefined symbol "a"
autos.pwn(270) : error 017: undefined symbol "x"
autos.pwn(272) : error 017: undefined symbol "x"
autos.pwn(279) : error 017: undefined symbol "a"
autos.pwn(280) : error 017: undefined symbol "x"
autos.pwn(282) : error 017: undefined symbol "x"
autos.pwn(289) : error 017: undefined symbol "a"
autos.pwn(290) : error 017: undefined symbol "x"
autos.pwn(292) : error 017: undefined symbol "x"
autos.pwn(305) : error 017: undefined symbol "a"
autos.pwn(306) : error 017: undefined symbol "x"
autos.pwn(308) : error 017: undefined symbol "x"
autos.pwn(315) : error 017: undefined symbol "a"
autos.pwn(316) : error 017: undefined symbol "x"
autos.pwn(318) : error 017: undefined symbol "x"
autos.pwn(325) : error 017: undefined symbol "a"
autos.pwn(326) : error 017: undefined symbol "x"
Do I have define them globally by adding that line to the top? Or?

(Edited code link: http://pastebin.com/zzrT2uuB)
No one can help?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)