Jump to content
  • 0

Salut, am 2 warning-uri.


Shad0wdpbgd

Question

Salut, am aceste doua warning-uri si nu stiu cum sa le rezolv. Daca poate sa ma ajute cineva, multumesc!

Warnings: 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"

COD:

DIALOG:MY_GARAGE(playerid, response, listitem)
{
    if(!response)
        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)
{
    if(!response)
        return true;

    new id = GetPVarInt(playerid, "VehSelect");
    if(!listitem)
    {
        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)
{
    if(!Iter_Count(PlayerVehicles[playerid]))
        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]));
        }
        else
        {
            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

2 answers to this question

Recommended Posts

  • 0

Salut @Raduq,

Formatul corect pentru dialogurile create folosind easyDialog este urmatoarea: (EXEMPLU)

Dialog:MY_GARAGE(playerid, response, listitem)
{
	//condul tau
	return true;
}

Ce e diferit? DIALOG este scris cu litere mici (doar prima fiind mare) -> Rezultat: Dialog

  • Upvote 1

Daca te-am ajutat =>

spacer.png

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.

Guest
Answer this question...

×   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

      poze:





    • By [email protected]
      Am nevoie si eu de un scripter cat de cat bun pentru a ma ajuta la rezolvarea unor bug-uri, add discord:RyZeN47#0020
    • 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 CenzoR
      gmfrom0\gamemodes\from0.pwn(32) : fatal error 100: cannot read from file: "../modules/colorss.pwn"
       
      am aceasta eroare.. din ce cauza este? nu o pot rezolva deloc, ma poate ajuta cineva?
      m-am uitat si in folderul modules, nu gasesc niciun pwn cu colorss
  • 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.