[SA-MP] Treba mi pomoc
Results 1 to 9 of 9

Thread: Treba mi pomoc

  1. #1
    Junior Member Array
    Join Date
    Aug 2016
    Karma
    0

    Unhappy Treba mi pomoc

    Treba mi pomoc oko skripta imam problem
    D:\Install\GTA\GTA-SanAndreas\gamemodes\RolePlay.pwn(96) : error 001: expected token: ";", but found "("
    D:\Install\GTA\GTA-SanAndreas\gamemodes\RolePlay.pwn(164) : warning 225: unreachable code
    D:\Install\GTA\GTA-SanAndreas\gamemodes\RolePlay.pwn(230) : error 012: invalid function call, not a valid address
    D:\Install\GTA\GTA-SanAndreas\gamemodes\RolePlay.pwn(230) : error 017: undefined symbol "playerid"
    D:\Install\GTA\GTA-SanAndreas\gamemodes\RolePlay.pwn(230) : error 029: invalid expression, assumed zero
    D:\Install\GTA\GTA-SanAndreas\gamemodes\RolePlay.pwn(230) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    5 Errors.
    Molim vas pomozite

  2. #2
    Junior Member Array
    Join Date
    Jan 2016
    Karma
    0

    Default

    error 001: expected token: ";", but found "("
    Pogledaj malo bolje.

  3. #3
    Member Array
    Join Date
    Jun 2016
    Location
    Republika Srpska
    Age
    18
    Karma
    0

    Default

    Objavi cijeli kod pa ćemo riješiti.

    АЛАЛ ВЕРА

  4. #4
    Junior Member Array
    Join Date
    Aug 2016
    Karma
    0

    Default

    (96)new Zaposlen(MAX_PLAYERS);
    (164)Stanica1 = CreateDynamicRaceCP(0,1834.3035,-1935.2351,12.9420,2026.7229,-1940.1078,12.9102,3.0);
    (230)Zaposlen(playerid) = 0;
    Ovde su errori

  5. #5
    Member Array
    Join Date
    Jun 2016
    Location
    Republika Srpska
    Age
    18
    Karma
    0

    Default

    Quote Originally Posted by INTEX88 View Post
    (96)new Zaposlen(MAX_PLAYERS);
    (164)Stanica1 = CreateDynamicRaceCP(0,1834.3035,-1935.2351,12.9420,2026.7229,-1940.1078,12.9102,3.0);
    (230)Zaposlen(playerid) = 0;
    Ovde su errori
    Te linije ništa ne pomažu jer ne mogu compile samo njih. Treba mi čitav kod da bi riješio problem.
    A i nije problem u njima nego kodu oko njih.

    АЛАЛ ВЕРА

  6. #6
    Junior Member Array
    Join Date
    Aug 2016
    Karma
    0

    Default

    //=========================== Bus Misija =================//
    new Zaposlen(MAX_PLAYERS);
    new Stanica1;
    new Stanica2;
    new Stanica3;
    new Stanica4;
    new Stanica5;
    new Stanica6;
    new Stanica7;
    new Stanica8;
    new Stanica9;
    new Stanica10;
    new Stanica11;
    new Stanica12;
    new Stanica13;
    new Stanica14;
    new Stanica15;
    new Stanica16;
    new Stanica17;
    new Stanica18;
    new Stanica19;
    new Stanica20;
    //================================================== ==//

    public OnGameModeInit()
    {
    DisableInteriorEnterExits();

    // Don't use these lines if it's a filterscript
    SetGameModeText("RolePlay");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddStaticVehicle(518,2028.5624,1303.5276,10.4912,3 09.1458,21,1);
    AddStaticVehicle(518,2027.6101,1307.3732,10.4911,3 02.4738,21,1);
    AddStaticVehicle(518,2026.9316,1312.3175,10.4913,3 08.7020,21,1);
    AddStaticVehicle(518,2025.8319,1315.7977,10.4912,3 02.3158,21,1);
    AddStaticVehicle(518,2025.5571,1319.7318,10.4911,3 04.5601,21,1);
    AddStaticVehicle(518,2025.7054,1324.3879,10.4913,3 05.6525,21,1);
    AddStaticVehicle(518,2025.9584,1328.7764,10.4913,3 10.8689,21,1);
    AddStaticVehicle(518,2027.9584,1383.4244,10.4913,2 25.8998,21,1);
    AddStaticVehicle(518,2026.7786,1379.6283,10.4909,2 34.7558,21,1);
    AddStaticVehicle(518,2025.9272,1374.6563,10.4910,2 38.5021,21,1);
    AddStaticVehicle(518,2025.6718,1366.7069,10.4893,2 29.4297,21,1);
    AddStaticVehicle(518,2026.0916,1361.8082,10.4911,2 46.8091,21,1);
    AddStaticVehicle(518,2025.7584,1357.9032,10.4912,2 44.9821,21,1);
    AddStaticVehicle(518,2026.4484,1370.3004,10.4889,2 33.3269,17,1);

    return 1;
    }
    public OnPlayerConnect(playerid)
    {
    {
    SendClientMessage(playerid, 0x9955DEEE,"Dobrodosao Na Server");
    return 1;
    }

    //=====================Bus Misija===================//
    Stanica1 = CreateDynamicRaceCP(0,1834.3035,-1935.2351,12.9420,2026.7229,-1940.1078,12.9102,3.0);
    Stanica2 = CreateDynamicRaceCP(0,2026.7229,-1940.1078,12.9102,2084.3987,-1832.4320,12.9538,3.0);
    Stanica3 = CreateDynamicRaceCP(0,2084.3987,-1832.4320,12.9538,2015.1654,-1809.4391,12.9499,3.0);
    Stanica4 = CreateDynamicRaceCP(0,2015.1654,-1809.4391,12.9499,1901.2549,-1749.0901,12.9377,3.0);
    Stanica5 = CreateDynamicRaceCP(0,1901.2549,-1749.0901,12.9377,1764.3488,-1729.7604,12.9537,3.0);
    Stanica6 = CreateDynamicRaceCP(0,1764.3488,-1729.7604,12.9537,1582.1497,-1729.6975,12.9483,3.0);
    Stanica7 = CreateDynamicRaceCP(0,1582.1497,-1729.6975,12.9483,1387.7344,-1730.3713,12.9379,3.0);
    Stanica8 = CreateDynamicRaceCP(0,1387.7344,-1730.3713,12.9379,1315.4072,-1669.2906,12.9507,3.0);
    Stanica9 = CreateDynamicRaceCP(0,1315.4072,-1669.2906,12.9507,1344.3876,-1490.4242,12.9451,3.0);
    Stanica10 = CreateDynamicRaceCP(0,1344.3876,-1490.4242,12.9451,1288.9530,-1392.9694,12.8254,3.0);
    Stanica11 = CreateDynamicRaceCP(0,1288.9530,-1392.9694,12.8254,1143.9290,-1393.6525,13.1177,3.0);
    Stanica12 = CreateDynamicRaceCP(0,1143.9290,-1393.6525,13.1177,1057.4803,-1447.5642,12.9290,3.0);
    Stanica13 = CreateDynamicRaceCP(0,1057.4803,-1447.5642,12.9290,1034.4485,-1636.9144,12.9300,3.0);
    Stanica14 = CreateDynamicRaceCP(0,1034.4485,-1636.9144,12.9300,1107.0320,-1855.1359,12.9541,3.0);
    Stanica15 = CreateDynamicRaceCP(0,1107.0320,-1855.1359,12.9541,1275.0895,-1854.4053,12.9536,3.0);
    Stanica16 = CreateDynamicRaceCP(0,1275.0895,-1854.4053,12.9536,1397.4293,-1875.3885,12.9438,3.0);
    Stanica17 = CreateDynamicRaceCP(0,1397.4293,-1875.3885,12.9438,1637.2943,-1874.5238,12.9502,3.0);
    Stanica18 = CreateDynamicRaceCP(0,1637.2943,-1874.5238,12.9502,1758.8259,-1826.4111,12.9517,3.0);
    Stanica19 = CreateDynamicRaceCP(0,1758.8259,-1826.4111,12.9517,1803.2939,-1931.9597,12.9527,3.0);
    Stanica20 = CreateDynamicRaceCP(0,1803.2939,-1931.9597,12.9527,0,0,0,3.0);
    TogglePlayerDynamicRaceCP(playerid,Stanica1,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica2,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica3,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica4,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica5,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica6,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica7,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica8,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica9,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica10,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica11,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica12,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica13,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica14,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica15,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica16,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica17,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica18,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica19,0);
    TogglePlayerDynamicRaceCP(playerid,Stanica20,0);
    //==========================================//
    return 1;
    }
    public OnVehicleDeath(vehicleid, killerid)
    {
    //=========Bus Misija===========//
    Zaposlen(playerid) = 0;
    TogglePlayerAllDynamicRaceCPs(playerid,0);
    //===============================//
    return 1;
    }
    if (strcmp("/bus", cmdtext, true, 10) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(Zaposlen[playerid] == 0 && GetVehicleModel(vehicleid) == 437 || GetVehicleModel(vehicleid) == 431)
    {
    Zaposlen[playerid] = 1;
    TogglePlayerDynamicRaceCP(playerid,Stanica1,1);
    }
    else if(Zaposlen[playerid] == 1);
    {
    SendClientMessage(playerid,0xAA3333AA,"Vec Si Zaposlen!");
    }
    else
    {
    SendClientMessage(playerid,0xAA3333AA,"Nisi u autobusu!");
    }

    return 1;
    }

  7. #7
    Junior Member Array
    Join Date
    Aug 2016
    Karma
    0

    Default

    eto to je kolko sam ja nasao sve za taj problem

  8. #8
    Member Array
    Join Date
    Jun 2016
    Location
    Republika Srpska
    Age
    18
    Karma
    0

    Default

    Napiši mi još samo koje includeove koristiš pošto mi crashuje pawno.

    АЛАЛ ВЕРА

  9. #9
    Junior Member Array
    Join Date
    Aug 2016
    Karma
    0

    Default

    #include <a_samp>
    #include <zcmd>
    #include <streamer>
    #include <YSI\y_ini>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •