Reserved Car System help
#1

C:\Documents and Settings\abc\Desktop\reserved car.pwn(30) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(30) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\abc\Desktop\reserved car.pwn(31) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(31) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\abc\Desktop\reserved car.pwn(66) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(67) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(6 : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(69) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(70) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(71) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(72) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(73) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(74) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(76) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(77) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(7 : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(79) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(80) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(81) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(273) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(275) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(276) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(277) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(27 : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(279) : error 017: undefined symbol "SDZ"
C:\Documents and Settings\abc\Desktop\reserved car.pwn(280) : error 017: undefined symbol "SDZ"

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


26 Errors.


help me please






Код:
#include <a_samp>

#define COLOR_RED 0xAA3333AA
#define COLOR_CONNECT 0x00FF00AA
#define COLOR_DISCONNECT 0xFF0000AA

//------------------------------Wheel Defines-----------------------------------
#define Shadow_Wheel    1073
#define Mega_Wheel      1074
#define Rimshine_Wheel  1075
#define Wires_Wheel     1076
#define Classic_Wheel   1077
#define Twist_Wheel     1078
#define Cutter_Wheel    1079
#define Switch_Wheel    1080
#define Grove_Wheel     1081
#define Import_Wheel    1082
#define Dollar_Wheel    1083
#define Trance_Wheel    1084
#define Atomic_Wheel    1085
#define Ahab_Wheel      1096
#define Virtual_Wheel   1097
#define Access_Wheel    1098
//------------------------------------------------------------------------------

#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

//-------------------------Reserved Vehicles------------------------------------
new Awankz[SDZ];
new Tyler[SDZ];
new Bill;
new Katie;
//------------------------------------------------------------------------------

main()
{
    print("\n----------------------------------");
    print(" Tyler[SDZ] SDZ Team\n");
    print("----------------------------------\n");
}

public OnGameModeInit()
{

//-----------------------Class Selection Skins----------------------------------
//AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
    AddPlayerClass(180,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(230,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(169,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(115,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(108,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(102,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(93,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(86,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(25,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(23,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(22,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(21,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(18,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(12,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(2,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);
    AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);

//-------------------------Reserved Vehicles------------------------------------
    Awankz[SDZ] = AddStaticVehicle(562,1485.8141,-693.2712,94.4098,228.1685,0,0);
    AddVehicleComponent(Awankz[SDZ], 1036);//Right Alien Sideskirt
    AddVehicleComponent(Awankz[SDZ], 1040);//Left Alien Sideskirt
    AddVehicleComponent(Awankz[SDZ], 1034);//Alien Exhaust
    AddVehicleComponent(Awankz[SDZ], 1172);//Front Bumper X-Flow
    AddVehicleComponent(Awankz[SDZ], 1149);//Rear Bumper Alien
    AddVehicleComponent(Awankz[SDZ], 1035);//X-Flow Roof Vent
    AddVehicleComponent(Awankz[SDZ], 1146);//X-Flow Spoiler
    AddVehicleComponent(Awankz[SDZ], Cutter_Wheel);

    Tyler[SDZ] = AddStaticVehicle(562,1460.5796,-635.6774,95.5308,179.8477,1,1);
    AddVehicleComponent(Tyler[SDZ], 1149);//Rear Bumper Alien
    AddVehicleComponent(Tyler[SDZ], 1172);//Front Bumper X-Flow
    AddVehicleComponent(Tyler[SDZ], 1036);//Right Alien Sideskirt
    AddVehicleComponent(Tyler[SDZ], 1040);//Left Alien Sideskirt
    AddVehicleComponent(Tyler[SDZ], Mega_Wheel);

    Bill = AddStaticVehicle(562,1041.4803,-302.1946,73.6007,273.9293,35,1);
    AddVehicleComponent(Bill, 1149);//Rear Bumper Alien
    AddVehicleComponent(Bill, 1172);//Front Bumper X-Flow
    AddVehicleComponent(Bill, 1036);//Right Alien Sideskirt
    AddVehicleComponent(Bill, 1040);//Left Alien Sideskirt
    AddVehicleComponent(Bill, Cutter_Wheel);

    Katie = AddStaticVehicle(562,1529.9218,-813.1093,71.5517,267.4311,35,1);
    AddVehicleComponent(Katie, 1149);//Rear Bumper Alien
    AddVehicleComponent(Katie, 1172);//Front Bumper X-Flow
    AddVehicleComponent(Katie, 1036);//Right Alien Sideskirt
    AddVehicleComponent(Katie, 1040);//Left Alien Sideskirt
    AddVehicleComponent(Katie, Cutter_Wheel);

//--------------------------Random Vehicles-------------------------------------
    AddStaticVehicle(502,-1954.2421,270.4366,40.9378,219.6907,36,8); //
    AddStaticVehicle(593,1641.6836,1534.0157,11.2394,359.5808,58,9); //
    AddStaticVehicle(502,1680.9374,1642.4747,10.7125,183.5951,51,75); //
    AddStaticVehicle(494,1684.8931,1642.6722,10.5943,183.3893,42,33); //
    AddStaticVehicle(494,2040.2238,1341.4673,10.4469,0.1761,75,79); //
    AddStaticVehicle(494,2040.1786,1347.3323,10.4467,359.9033,36,117); //
    AddStaticVehicle(562,2023.2207,1334.2344,9.9924,269.9702,35,1); //
    AddStaticVehicle(562,2022.6525,1351.6447,9.9262,270.2971,17,1); //
    AddStaticVehicle(502,2038.6685,1372.9619,10.5740,359.9970,36,8); //
    AddStaticVehicle(562,2039.0295,1549.8147,10.2786,179.5966,116,1); //
    AddStaticVehicle(566,2150.9390,1483.1517,10.6041,0.1396,30,1); //
    AddStaticVehicle(506,2139.2742,1408.6450,10.4804,359.3202,52,52); //
    AddStaticVehicle(502,-1895.2896,273.9190,40.9410,181.9889,51,75); //
    AddStaticVehicle(502,-1898.9841,273.7648,40.9327,180.5829,58,67); //
    AddStaticVehicle(562,1464.5601,-902.4739,54.4426,178.6111,35,1); //
    AddStaticVehicle(562,1368.7902,-846.8735,43.6713,211.6595,17,1); //
    AddStaticVehicle(541,2075.0532,1412.7218,10.3627,180.2748,2,1); //
    CreateObject(986, 1408.82, 1683.93, 9.81,   0.00, 0.00, 269.02);
    CreateObject(986, 1408.75, 1675.94, 9.81,   0.00, 0.00, 270.41);
    CreateObject(986, 1408.82, 1667.92, 9.81,   0.00, 0.00, 270.60);
    CreateObject(986, 1408.95, 1659.89, 9.81,   0.00, 0.00, 270.40);
    CreateObject(986, 1409.01, 1651.86, 9.81,   0.00, 0.00, 271.02);
    CreateObject(986, 1409.02, 1643.82, 9.82,   0.00, 0.00, 269.62);
    CreateObject(986, 1408.95, 1635.77, 9.81,   0.00, 0.00, 268.73);
    CreateObject(986, 1408.88, 1627.77, 9.81,   0.00, 0.00, 270.27);
    CreateObject(986, 1408.83, 1619.74, 9.84,   0.00, 0.00, 89.71);
    CreateObject(986, 1408.83, 1619.74, 9.84,   0.00, 0.00, 89.71);
    CreateObject(986, 1408.83, 1619.74, 9.84,   0.00, 0.00, 89.71);
    CreateObject(986, 1408.74, 1611.70, 9.81,   0.00, 0.00, 270.02);
    CreateObject(986, 1408.84, 1603.70, 9.81,   0.00, 0.00, 271.03);
    CreateObject(986, 1408.76, 1595.66, 9.82,   0.00, 0.00, 268.50);
    CreateObject(986, 1408.70, 1587.67, 9.81,   0.00, 0.00, 271.17);
    CreateObject(986, 1408.77, 1579.64, 9.81,   0.00, 0.00, 270.20);
    CreateObject(986, 1408.85, 1571.60, 9.82,   0.00, 0.00, 269.70);
    CreateObject(986, 1408.81, 1563.61, 9.81,   0.00, 0.00, 269.14);
    CreateObject(986, 1408.83, 1555.64, 9.81,   0.00, 0.00, 269.82);
    CreateObject(986, 1408.86, 1547.61, 9.81,   0.00, 0.00, 270.54);
    CreateObject(986, 1408.83, 1539.63, 9.81,   0.00, 0.00, 270.00);
    CreateObject(986, 1408.84, 1531.57, 9.82,   0.00, 0.00, 269.35);
    CreateObject(986, 1408.64, 1523.31, 9.81,   0.00, 0.00, 269.92);
    CreateObject(986, 1408.67, 1515.34, 9.81,   0.00, 0.00, 269.96);
    CreateObject(986, 1408.71, 1507.32, 9.79,   0.00, 0.00, 270.21);
    CreateObject(986, 1408.63, 1499.28, 9.81,   0.00, 0.00, 269.89);
    CreateObject(986, 1408.72, 1491.28, 9.81,   0.00, 0.00, 270.37);
    CreateObject(986, 1408.80, 1483.31, 9.81,   0.00, 0.00, 269.93);
    CreateObject(986, 1408.73, 1439.25, 9.81,   0.00, 0.00, 269.18);
    CreateObject(986, 1408.72, 1431.24, 9.81,   0.00, 0.00, 270.41);
    CreateObject(986, 1408.76, 1423.24, 9.81,   0.00, 0.00, 269.67);
    CreateObject(986, 1408.68, 1415.18, 9.83,   0.00, 0.00, 270.84);
    CreateObject(986, 1408.70, 1407.15, 9.81,   0.00, 0.00, 269.82);
    CreateObject(986, 1408.60, 1399.13, 9.81,   0.00, 0.00, 269.84);
    CreateObject(986, 1408.76, 1391.17, 9.78,   0.00, 0.00, 270.12);
    CreateObject(986, 1408.86, 1383.14, 9.73,   0.00, 0.00, 269.92);
    CreateObject(986, 1408.72, 1375.05, 9.75,   0.00, 0.00, 270.04);
    CreateObject(8148, 1257.08, 1443.49, 11.74,   0.00, 0.00, 0.00);
    CreateObject(986, 1408.76, 1367.05, 9.76,   0.00, 0.00, 270.40);
    CreateObject(986, 1408.78, 1359.02, 9.77,   0.00, 0.00, 269.89);
    CreateObject(986, 1408.79, 1351.00, 9.77,   0.00, 0.00, 270.20);
    CreateObject(986, 1408.82, 1342.98, 9.78,   0.00, 0.00, 270.08);
    CreateObject(986, 1408.74, 1334.97, 9.78,   0.00, 0.00, 269.71);
    CreateObject(986, 1408.71, 1326.95, 9.77,   0.00, 0.00, 270.37);
    CreateObject(986, 1408.79, 1318.98, 9.81,   0.00, 0.00, 270.13);
    CreateObject(986, 1408.85, 1311.00, 9.81,   0.00, 0.00, 270.48);
    CreateObject(986, 1409.17, 1302.96, 9.81,   0.00, 0.00, 274.21);
    CreateObject(986, 1411.16, 1295.35, 9.81,   0.00, 0.00, 294.81);
    CreateObject(986, 1415.59, 1288.78, 9.81,   0.00, 0.00, 313.06);
    CreateObject(986, 1421.91, 1284.05, 9.81,   0.00, 0.00, 333.88);
    CreateObject(986, 1429.42, 1281.47, 9.81,   0.00, 0.00, 347.91);
    CreateObject(986, 1437.26, 1281.40, 9.81,   0.00, 0.00, 11.32);
    CreateObject(986, 1444.69, 1284.12, 9.82,   0.00, 0.00, 29.48);
    CreateObject(986, 1450.74, 1289.14, 9.81,   0.00, 0.00, 49.58);
    CreateObject(986, 1455.02, 1295.81, 9.81,   0.00, 0.00, 65.21);
    CreateObject(986, 1457.01, 1303.40, 9.79,   0.00, 0.00, 84.16);
    CreateObject(986, 1457.44, 1311.39, 9.81,   0.00, 0.00, 89.88);
    CreateObject(986, 1457.45, 1319.39, 9.81,   0.00, 0.00, 90.28);
    CreateObject(986, 1457.49, 1327.44, 9.83,   0.00, 0.00, 90.79);
    CreateObject(986, 1457.46, 1335.42, 9.83,   0.00, 0.00, 89.90);
    CreateObject(986, 1457.50, 1343.41, 9.85,   0.00, 0.00, 89.93);
    CreateObject(986, 1457.54, 1351.44, 9.85,   0.00, 0.00, 89.64);
    CreateObject(986, 1457.48, 1359.42, 9.85,   0.00, 0.00, 90.12);
    CreateObject(986, 1457.44, 1367.42, 9.85,   0.00, 0.00, 89.85);
    CreateObject(986, 1457.48, 1375.45, 9.85,   0.00, 0.00, 90.07);
    CreateObject(986, 1457.53, 1383.49, 9.85,   0.00, 0.00, 89.96);
    CreateObject(986, 1457.54, 1391.49, 9.84,   0.00, 0.00, 90.78);
    CreateObject(986, 1457.48, 1399.49, 9.82,   0.00, 0.00, 89.51);
    CreateObject(986, 1457.56, 1407.47, 9.82,   0.00, 0.00, 89.57);
    CreateObject(986, 1457.56, 1415.47, 9.81,   0.00, 0.00, 90.29);
    CreateObject(986, 1457.48, 1423.48, 9.82,   0.00, 0.00, 90.16);
    CreateObject(986, 1457.47, 1431.50, 9.83,   0.00, 0.00, 89.77);
    CreateObject(986, 1457.35, 1439.20, 9.81,   0.00, 0.00, 91.78);
    CreateObject(986, 1457.41, 1487.22, 9.81,   0.00, 0.00, 89.60);
    CreateObject(986, 1457.42, 1495.22, 9.80,   0.00, 0.00, 90.39);
    CreateObject(986, 1457.41, 1503.24, 9.78,   0.00, 0.00, 89.78);
    CreateObject(986, 1457.43, 1511.26, 9.78,   0.00, 0.00, 89.84);
    CreateObject(986, 1457.47, 1519.26, 9.78,   0.00, 0.00, 89.74);
    CreateObject(986, 1457.50, 1527.27, 9.79,   0.00, 0.00, 90.04);
    CreateObject(986, 1457.48, 1535.29, 9.79,   0.00, 0.00, 90.17);
    CreateObject(986, 1457.51, 1543.32, 9.79,   0.00, 0.00, 89.62);
    CreateObject(986, 1457.53, 1551.32, 9.79,   0.00, 0.00, 90.24);
    CreateObject(986, 1457.47, 1559.28, 9.80,   0.00, 0.00, 90.06);
    CreateObject(986, 1457.42, 1567.29, 9.79,   0.00, 0.00, 90.53);
    CreateObject(986, 1457.37, 1575.27, 9.79,   0.00, 0.00, 90.04);
    CreateObject(986, 1457.56, 1583.32, 9.82,   0.00, 0.00, 90.35);
    CreateObject(986, 1457.57, 1591.30, 9.79,   0.00, 0.00, 89.45);
    CreateObject(986, 1457.55, 1599.32, 9.79,   0.00, 0.00, 91.11);
    CreateObject(986, 1457.47, 1607.36, 9.81,   0.00, 0.00, 89.75);
    CreateObject(986, 1457.56, 1615.31, 9.78,   0.00, 0.00, 89.05);
    CreateObject(986, 1457.67, 1623.27, 9.80,   0.00, 0.00, 89.40);
    CreateObject(986, 1457.72, 1631.26, 9.82,   0.00, 0.00, 90.07);
    CreateObject(986, 1457.66, 1639.22, 9.82,   0.00, 0.00, 90.89);
    CreateObject(986, 1457.59, 1647.24, 9.81,   0.00, 0.00, 90.29);
    CreateObject(986, 1457.52, 1655.25, 9.82,   0.00, 0.00, 90.40);
    CreateObject(986, 1457.56, 1663.22, 9.82,   0.00, 0.00, 89.09);
    CreateObject(986, 1457.59, 1671.21, 9.81,   0.00, 0.00, 90.59);
    CreateObject(986, 1457.57, 1679.20, 9.81,   0.00, 0.00, 89.82);
    CreateObject(986, 1457.23, 1687.16, 9.82,   0.00, 0.00, 94.28);
    CreateObject(986, 1455.74, 1694.98, 9.82,   0.00, 0.00, 107.18);
    CreateObject(986, 1452.04, 1701.90, 9.82,   0.00, 0.00, 128.87);
    CreateObject(986, 1446.27, 1707.31, 9.81,   0.00, 0.00, 145.01);
    CreateObject(986, 1439.09, 1710.56, 9.81,   0.00, 0.00, 164.57);
    CreateObject(986, 1431.20, 1711.33, 9.82,   0.00, 0.00, 4.17);
    CreateObject(986, 1423.58, 1709.41, 9.82,   0.00, 0.00, 204.43);
    CreateObject(986, 1417.09, 1704.92, 9.79,   0.00, 0.00, 224.31);
    CreateObject(986, 1412.27, 1698.68, 9.81,   0.00, 0.00, 239.78);
    CreateObject(986, 1409.74, 1691.79, 9.81,   0.00, 0.00, 76.95);
    CreateObject(8343, 1413.04, 1704.05, 9.82,   0.00, 0.00, 0.00);


//-------------------------Gamemode Settings------------------------------------
    SetGameModeText("Drift|Roleplay|Freeroam");
    ShowPlayerMarkers(1);
    ShowNameTags(1);
    AllowAdminTeleport(1);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerConnect(playerid)
{
    new jstring[128];
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(jstring, sizeof(jstring), " >>> ( %s ) joined the server >>>", playername);
    SendClientMessageToAll(COLOR_CONNECT, jstring);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    new dstring[128];
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(dstring, sizeof(dstring), " <<< ( %s ) left the server <<<", playername);
    SendClientMessageToAll(COLOR_DISCONNECT, dstring);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerInterior(playerid,0);
    TogglePlayerClock(playerid,0);
    return 1;
}

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

public OnVehicleSpawn(vehicleid)
{
    if(vehicleid == Awankz[SDZ])
    {
        AddVehicleComponent(Awankz[SDZ], 1036);//Right Alien Sideskirt
        AddVehicleComponent(Awankz[SDZ], 1040);//Left Alien Sideskirt
        AddVehicleComponent(Awankz[SDZ], 1034);//Alien Exhaust
        AddVehicleComponent(Awankz[SDZ], 1172);//Front Bumper X-Flow
        AddVehicleComponent(Awankz[SDZ], 1149);//Rear Bumper Alien
        AddVehicleComponent(Awankz[SDZ], 1035);//X-Flow Roof Vent
        AddVehicleComponent(Awankz[SDZ], 1146);//X-Flow Spoiler
        AddVehicleComponent(Awankz[SDZ], Cutter_Wheel);
    }
    if(vehicleid == Tyler[SDZ])
    {
        AddVehicleComponent(Tyler[SDZ], 1149);//Rear Bumper Alien
        AddVehicleComponent(Tyler[SDZ], 1172);//Front Bumper X-Flow
        AddVehicleComponent(Tyler[SDZ], 1036);//Right Alien Sideskirt
        AddVehicleComponent(Tyler[SDZ], 1040);//Left Alien Sideskirt
        AddVehicleComponent(Tyler[SDZ], Mega_Wheel);
    }
    if(vehicleid == Bill)
    {
        AddVehicleComponent(Bill, 1149);//Rear Bumper Alien
        AddVehicleComponent(Bill, 1172);//Front Bumper X-Flow
        AddVehicleComponent(Bill, 1036);//Right Alien Sideskirt
        AddVehicleComponent(Bill, 1040);//Left Alien Sideskirt
        AddVehicleComponent(Bill, Cutter_Wheel);
    }
    if(vehicleid == Katie)
    {
        AddVehicleComponent(Katie, 1149);//Rear Bumper Alien
        AddVehicleComponent(Katie, 1172);//Front Bumper X-Flow
        AddVehicleComponent(Katie, 1036);//Right Alien Sideskirt
        AddVehicleComponent(Katie, 1040);//Left Alien Sideskirt
        AddVehicleComponent(Katie, Cutter_Wheel);
    }
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[128];
    new idx;
    cmd = strtok(cmdtext, idx);
    if(strcmp(cmd, "/nascar", true) == 0)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            SetVehiclePos(GetPlayerVehicleID(playerid), 1433.4521, 1504.1399, 10.8203);
        }
        else
        {
            SetPlayerPos(playerid, 1433.4521, 1504.1399, 10.8203);
        }
        return 1;
    }
    if(strcmp(cmd, "/sf", true) == 0)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            SetVehiclePos(GetPlayerVehicleID(playerid), -1898.6420,243.1353,41.0469);
        }
        else
        {
            SetPlayerPos(playerid, -1898.6420,243.1353,41.0469);
        }
        return 1;
    }
    if(strcmp(cmd, "/ls", true) == 0)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            SetVehiclePos(GetPlayerVehicleID(playerid), 1535.9197,-1679.2443,13.3828);
        }
        else
        {
            SetPlayerPos(playerid, 1535.9197,-1679.2443,13.3828);
        }
        return 1;
    }
    if(strcmp(cmd, "/lv", true) == 0)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            SetVehiclePos(GetPlayerVehicleID(playerid), 2045.2657,1343.9778,10.6719);
        }
        else
        {
            SetPlayerPos(playerid, 2045.2657,1343.9778,10.6719);
        }
        return 1;
    }
    if(strcmp(cmd, "/mycar", true) == 0)
    {
        new Float:X,Float:Y,Float:Z;
        new tname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, tname, sizeof(tname));
        if(strcmp(tname,"Awankz[SDZ]", true) == 0)
        {
            GetPlayerPos(playerid, X,Y,Z);
            SetVehiclePos(NuckFuts, X+3, Y+3, Z);
        }
        if(strcmp(tname,"Stoked", true) == 0)
        {
            GetPlayerPos(playerid, X,Y,Z);
            SetVehiclePos(Stoked, X+3, Y+3, Z);
        }
        if(strcmp(tname,"Bill", true) == 0)
        {
            GetPlayerPos(playerid, X,Y,Z);
            SetVehiclePos(Bill, X+3, Y+3, Z);
        }
        if(strcmp(tname,"Katie", true) == 0)
        {
            GetPlayerPos(playerid, X,Y,Z);
            SetVehiclePos(Katie, X+3, Y+3, Z);
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "Your name isn't on the reserved list.");
        }
        return 1;
    }
    return 0;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_FIRE))
    {
        if (IsPlayerInAnyVehicle(playerid))
        {
            if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
            {
                AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
            }
        }
    }
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    return 1;
}
forward SetupPlayerForClassSelection(playerid);
public SetupPlayerForClassSelection(playerid)
{
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}

public OnPlayerRequestClass(playerid, classid)
{
    SetupPlayerForClassSelection(playerid);
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new PlayerName[24];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

    if(newstate == PLAYER_STATE_DRIVER)
    {
        new Vehicle = GetPlayerVehicleID(playerid);
        if(Vehicle == NuckFuts)
        {
        if(strcmp(PlayerName,"NuckFuts",true))
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "This car is reserved for: NuckFuts");
            }
        }
        if(Vehicle == Stoked)
        {
            if(strcmp(PlayerName,"Stoked",true))
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "This car is reserved for: Stoked");
            }
        }
        if(Vehicle == Bill)
        {
            if(strcmp(PlayerName,"Bill",true))
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "This car is reserved for: Bill");
            }
        }
        if(Vehicle == Bill)
        {
            if(strcmp(PlayerName,"Katie",true))
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "This car is reserved for: Katie");
            }
        }
    }
    return 1;
}

strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[30];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Reply
#2

I can't see 'SDZ' definition anywhere.. Looks like you haven't defined that yet.
Reply
#3

can u help me to define it
Reply
#4

I don't know what 'SDZ' was supposed to be in the first place, but try this:
pawn Код:
new Awankz[1];
new Tyler[1];
Reply
#5

Why would you add:

new Awankz[SDZ];
new Tyler[SDZ];

If it definitely won't define '[SDZ]..
Reply
#6

wow SDZ . lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)