Jump to content

Smulyz

Membru
  • Posts

    49
  • Joined

  • Last visited

Posts posted by Smulyz

  1. 6 minutes ago, Akan said:
    function IsABike(vehicleid) {
        switch(GetVehicleModel(vehicleid)) {
            case 481, 509, 510: return 1;
        }
        return 0;
    }
    
    function IsAMotorcycle(vehicleid) {
        switch(GetVehicleModel(vehicleid)) {
            case 448, 461, 462, 463, 468, 471, 521, 522, 523, 571, 581, 586: return 1;
        }
        return 0;
    }
    
    function IsABoat(vehicleid) {
        switch(GetVehicleModel(vehicleid)) {
            case 430, 446, 452, 453, 454, 472, 473, 484, 493, 595: return 1;
        }
        return 0;
    }
    
    function IsAPlane(vehicleid) {
        switch(GetVehicleModel(vehicleid)) {
            case 417, 425, 447, 460, 464, 465, 469, 476, 487, 488, 497, 501, 511, 512, 513, 519, 520, 548, 553, 563, 577, 592, 594: return 1;
        }
        return 0;
    }

    Ai uitat acoladele la primul switch.
    Si ai uitat niste virgule in case-uri...

    +1 mereu ma ajuta si e corect mereu

  2. erori:

    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(118) : error 001: expected token: "{", but found "case"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(119) : error 002: only a single statement (or expression) can follow each "case"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(119) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(120) : warning 209: function "IsABike" should return a value
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : error 001: expected token: ":", but found "-integer value-"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(131) : error 001: expected token: ";", but found ":"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(133) : error 010: invalid function or declaration
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(138) : error 001: expected token: ":", but found "."
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(138) : error 029: invalid expression, assumed zero
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(138) : error 029: invalid expression, assumed zero
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(138) : fatal error 107: too many error messages on one line

     

    linile gen tot codu

     

    function IsABike(vehicleid) {
        switch(GetVehicleModel(vehicleid))
        case 481, 509, 510: return 1;
        return 0;
    }

    function IsAMotorcycle(vehicleid) {
        switch(GetVehicleModel(vehicleid)) {
            case 448, 461, 462, 463, 468, 471, 521, 522, 523, 571, 581, 586: return 1;
        }
        return 0;
    }

    function IsABoat(vehicleid) {
        switch(GetVehicleModel(vehicleid)) {
            case 430, 446 452, 453, 454, 472, 473, 484, 493, 595: return 1;
        }
        return 0;
    }

    function IsAPlane(vehicleid) {
        switch(GetVehicleModel(vehicleid)) {
            case 417, 425, 447, 460, 464, 465, 469, 476, 487, 488, 497, 501, 511, 512, 513, 519. 520, 548, 553, 563, 577, 592, 594:return 1;
        }
        return 0;
    }

  3. functia

    public OnPlayerSpawn(playerid)
    {

        SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
        SetCameraBehindPlayer(playerid);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
        SetPlayerHealth(playerid, 100.0);
        SpawnPlayer(playerid);
        SetPlayerPos(playerid, 2007.6338, 1167.8236, 10.8203);
        SetPlayerFacingAngle(playerid, 277.4187);
        return true;
    }

    gen imi arata albastru si un cap stricat

  4. am rezolvat majoritatea erorilor dar acum imi da erorile astea

    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(324) : error 017: undefined symbol "playerid"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(324) : error 017: undefined symbol "Iterator@iterator"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(324) : error 036: empty statement
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(324) : fatal error 107: too many error messages on one line

    linia:

    foreach(Player : iterator) {

  5. C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(312) : error 001: expected token: "-identifier-", but found "-integer value-"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(312) : error 029: invalid expression, assumed zero
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(312) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(312) : error 001: expected token: ";", but found "]"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(312) : fatal error 107: too many error messages on one line

     

    linie

    new mesaj[128], string <0xf9f9f9> [128];

  6. linie

    cache_get_field_name_int(0, "Admin", PlayerInfo[playerid][pAdmin]);

    EROARE

    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(269) : error 017: undefined symbol "cache_get_field_name_int"
    Pawn compiler 3.10.10              Copyright (c) 1997-2006, ITB CompuPhase
     

  7. linia


        new time = ObtainTimer(DelayCommand[playerid][8]);
        

    erori

    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(289) : error 017: undefined symbol "ObtainTimer"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(289) : warning 215: expression has no effect
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(289) : error 001: expected token: ";", but found "]"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(289) : error 029: invalid expression, assumed zero
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(289) : fatal error 107: too many error messages on one line

     

  8. 19 minutes ago, qSorin_ said:

    Incearca asta:

    CMD:fly(playerid, params[])
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xf9f9f9ff, "Nu ai acces la aceasta comanda!");
        
        StartFly(playerid);
        InitFly(playerid);
        return SendClientMessage(playerid, 0xf9f9f9ff, "Ai activat FlyMode!");
    }
    CMD:stopfly(playerid, params[])
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xf9f9f9ff, "Nu ai acces la aceasta comanda!");
        
        StopFly(playerid);
        return SendClientMessage(playerid, 0xf9f9f9ff, "Ai dezactivat FlyMode!");
    }

    +1 a mers

  9. linia de cod

    CMD:Fly(players, params[])
    {
                if(IsPlayerAdmin(playerid))
                {
                StartFly(playerid);
                InitFly(playerid);
                SendClientMessage(playerid, {f9f9f9}, "Ai activat FlyMode!");
                }
                else
                {
                        SendClientMessage(playerid, {f9f9f9}, "Nu ai acces la aceasta comanda!");
                }
                return 1;
    }
    CMD:stopfly(playerid, paramsp[])
    {
                if(IsPlayerAdmin(playerid))
                {
                StopFly(playerid);
                SendClientMessage(playerid, {f9f9f9}, "Ai dezactivat FlyMode!");
                }
                else
                {
                SendClientMessage(playerid, {f9f9f9}, "Nu ai acces la aceasta comanda!");
                }
                return 1;
    }

     

    erori

    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(313) : error 017: undefined symbol "playerid"; did you mean "players"?
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(315) : error 017: undefined symbol "playerid"; did you mean "players"?
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(316) : error 017: undefined symbol "playerid"; did you mean "players"?
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(317) : error 017: undefined symbol "playerid"; did you mean "players"?
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(321) : error 017: undefined symbol "playerid"; did you mean "players"?
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(330) : error 017: undefined symbol "f9f9f9"
    C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(334) : error 017: undefined symbol "f9f9f9"
    Pawn compiler 3.10.10              Copyright (c) 1997-2006, ITB CompuPhase
     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.