Jump to content

Patru warning-uri.


Recommended Posts

Salut, am aceste warning-uri si chiar nu stiu cum sa le rezolv, multumesc tutoror

Warnings: D:\Downloads\Tuts GM (1)\Tuts GM\gamemodes\Tuts.pwn(634) : warning 215: expression has no effect
D:\Downloads\Tuts GM (1)\Tuts GM\gamemodes\Tuts.pwn(655) : warning 215: expression has no effect
D:\Downloads\Tuts GM (1)\Tuts GM\gamemodes\Tuts.pwn(4434) : warning 203: symbol is never used: "MY_GARAGE"
D:\Downloads\Tuts GM (1)\Tuts GM\gamemodes\Tuts.pwn(4434) : warning 203: symbol is never used: "MY_GARAGE_DESPAWNED"


// linia 634     vehicle_fuel[vehicleid] == 100.0;
// linia 635    vehicle_personal[vehicleid] = -1;


// Chestia cu dialog-ul 


DIALOG:MY_GARAGE(playerid, response, listitem)
        return true;

    SetPVarInt(playerid, "VehSelect", playerInfo[playerid][pSelectVehicle][listitem]);
    if(PersonalVehicle[playerid][pSelectVehicle][listitem][pvSpawnedID] == INVALID_VEHICLE_ID)
        return Dialog_Show(playerid, MY_GARAGE_DESPAWNED, DIALOG_STYLE_LIST, "Server: My Vehicles", "Informations\nSpawn", "Select", "Close");

    return Dialog_Show(playerid, MY_GARAGE_SPAWNED, DIALOG_STYLE_LIST, "SERVER: My Vehicles", "Informations\nFind\nSpawn\nDespawn\nUnlock", "Select", "Close");

DIALOG:MY_GARAGE_DESPAWNED(playerid, response, listitem)
        return true;

    new id = GetPVarInt(playerid, "VehSelect");
        new string[256];
        format(string, 256, "Model: %s (%d)\nPrimary color: %d\nSecondary color: %d\nKilometers: %.02f\nAge: %d days\nInsurance: %d points\nInsurance price: $%s", getVehicleName(PersonalVehicle[id][pvModelID]), PersonalVehicle[id][pvModelID], PersonalVehicle[id][pvColorOne], PersonalVehicle[id][pvColorTwo], PersonalVehicle[id][pvOdometer], getVehDays(id), PersonalVehicle[id][pvInsurancePoints], getInsurancePrice(floaround(PersonalVehicle[id][pvOdometer]), getVehDays(id)));
        return Dialog_Show(playerid, 0, DIALOG_STYLE_MSGBOX, "SERVER: Informations", string, "Close");

    PersonalVehicle[id][pvSpawnedID] = CreateVehicle(PersonalVehicle[id][pvX], PersonalVehicle[id][Y], PersonalVehicle[id][pvZ], PersonalVehicle[id][pvAngle], PersonalVehicle[id][pvColorOne], PersonalVehicle[id][pvColorTwo], -1);
    SetVehicleInterior(PersonalVehicle[id][pvSpawnedID], PersonalVehicle[id][pvVirtualWorld]);
    LinkVehicleToInterior(PersonalVehicle[id][pvSpawnedID], PersonalVehicle[id][pvInterior]);
    SetVehicleNumberPlate(PersonalVehicle[id][pvSpawnedID], PersonalVehicle[id][pvCarPlate]);
    vehicle_fuel[PersonalVehicle[id][pvSpawnedID]] = PersonalVehicle[id][pvFuel];
    PersonalVehicle[id][pvDespawnTime] = (gettime() * 900);
    SCMF(playerid, -1, "Vehiculul tau %s, a fost spawnat la locul sau de parcare.", getVehicleName(PersonalVehicle[id][pvModelID]));
    return true;

YCMD:vehicles(playerid, params[], help)
        return sendPlayerError(playerid, "You don't own any cars!");

    new string[2048] = "Slot\tVehicle\tStatus\tDespawn Time\n", count = 0;
    foreach(new i : PlayerVehicles[playerid])
        if(PersonalVehicle[i][pvSpawnedID] == INVALID_VEHICLE_ID)
            format(string, 2048, "%s{ffffff}%d\t%s\t{ff0000}Despawned\t{ffffff}-\n", string, (i + 1), getVehicleName(PersonalVehicle[i][pvModelID]));
            format(string, 2048, "%s{ffffff}%d\t%s\t%s\t%d min\n", string, (i + 1), getVehicleName(PersonalVehicle[i][pvModelID]), (IsVehicleOccupied(PersonalVehicle[i][pvSpawnedID])) ? ("{E5913E}Occupied{FFFFFF}") : ("{4DFF00}Spawned{FFFFFF}"), ((PersonalVehicle[i][pvDespawnTime] - gettime()) / 60));
        playerInfo[playerid][pSelectVehicle][count] = i;
        count ++;

    new title[64];
    format(title, 64, "%s's vehicles (%d slots)", getName(playerid), playerInfo[playerid][pVehicleSlots]);
    Dialog_Show(playerid, MY_GARAGE, DIALOG_STYLE_TABLIST_HEADERS, title, string, "Select", "Close");
    return true;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By ItzGabi2k
      swapper.pwn(11883) : warning 219: local variable "gString" shadows a variable at a preceding level
      swapper.pwn(13192) : warning 213: tag mismatch: expected tag "bool", but found none ("_")
      liniile 11883-11884:
          new gString[0] = EOS;
          cache_get_field_content(0, "name", gString, MAX_PLAYER_NAME);     
      linia 13192:
               CarInfo[id][cRainBow]        = cache_get_field_content_int(0, "RainBow");
    • By AntiExE Smk Boss
      Vand panel-uri realizate in VueJS si PHP facute de mine de la 0, pretul poate porni de la 10 euro si sa ajunga pana la 30 in functie de cerintele clientului

      Cum se procedeaza? clientul alege template-ul fac panel-ul clientul imi da bani ii dau panel-ul si am incheiat colaborarea

      Si daca aveti vreun panel cu errori sau etc.. dati-mi pm si va ajut gratis.

      Contact pe instagram: gvng.AntiExE


    • By Sile Bandit
      Nu inteleg de ce imi apare acest warning
      am facut o noua variabila new MySQL:sqldb;   si tot imi apare acest warning
      ma puteti ajuta?
      Imagine : https://imgur.com/a/pwDnHGV
    • By AlexCelTare
      Salut imi poate spune cineva cum fac atunci cand un player intra intr-un checkpoint, sa ii dea alt checkpoint si tot asa?
      Eu am facut asa:
      Dar habar nu am cum sa fac mai multe checkpointuri dupa ce intra intr-unul
      new bool:onCheck[MAX_PLAYERS];
      public OnPlayerCommandText(playerid, cmdtext[])
          if (strcmp("/startmission", cmdtext, true, 10) == 0)
              if(IsPlayerInRangeOfPoint(playerid, 3.0, 2333.1101,-1072.5065,1049.0234))
              SetPlayerCheckpoint(playerid, -2130.9629,-2061.5767,63.3069, 3.0);
              onCheck[playerid] = true;
              return 1;
      public OnPlayerEnterCheckpoint(playerid)
          if(onCheck[playerid]) // if it's true
              GivePlayerMoney(playerid, 10);
              GameTextForPlayer(playerid,"~g~Mission 1 : Discover Dealership Completed!\nAnd Got +10$",3000,4);
              onCheck[playerid] = false;
    • By Andrei SA-MP
             TurnLight[vehicleid][2] = 0;
             TurnLight[vehicleid][3] = 0;
       return 1;
  • Recently Browsing   0 members

    No registered users viewing this page.

  • 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.