Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Dialog problem

$
0
0
Code:

new coordsstring[1024],storage[128];
        format(storage, sizeof(storage), "{00BFFF}|____ %s's inventory & capacities [Inventory Skill: %i/5] ____|\n", GetPlayerRPName(playerid), PlayerInfo[playerid][pInventoryUpgrade]);
    strcat(coordsstring,storage);

        format(storage, sizeof(storage), "{00BFFF}[Inventory]{B4B5B7}Weed: %i/%ig - Cocaine: %i/%ig - Meth: %i/%ig - Painkillers: %i/%i - Seeds: %i/%i\n", PlayerInfo[playerid][pWeed], GetPlayerCapacity(playerid, CAPACITY_WEED),
        PlayerInfo[playerid][pCocaine], GetPlayerCapacity(playerid, CAPACITY_COCAINE), PlayerInfo[playerid][pMeth], GetPlayerCapacity(playerid, CAPACITY_METH), PlayerInfo[playerid][pPainkillers], GetPlayerCapacity(playerid, CAPACITY_PAINKILLERS), PlayerInfo[playerid][pSeeds], GetPlayerCapacity(playerid, CAPACITY_SEEDS));
    strcat(coordsstring,storage);

        format(storage, sizeof(storage), "{00BFFF}[Inventory]{B4B5B7}Materials: %i/%i - Ephedrine: %i/%ig - Muriatic acid: %i/10 - Baking soda: %i/3\n", PlayerInfo[playerid][pMaterials], GetPlayerCapacity(playerid, CAPACITY_MATERIALS),
        PlayerInfo[playerid][pEphedrine], GetPlayerCapacity(playerid, CAPACITY_EPHEDRINE), PlayerInfo[playerid][pMuriaticAcid], PlayerInfo[playerid][pBakingSoda]);
    strcat(coordsstring,storage);

        format(storage, sizeof(storage),  "{00BFFF}[Inventory]{B4B5B7}Fishing rod: %s - Fish bait: %i/20 - Boombox: %s - MP3 player: %s - Phonebook: %s\n", (PlayerInfo[playerid][pFishingRod]) ? ("Yes") : ("No"), PlayerInfo[playerid][pFishingBait], (PlayerInfo[playerid][pBoombox]) ? ("Yes") : ("No"), (PlayerInfo[playerid][pMP3Player]) ? ("Yes") : ("No"), (PlayerInfo[playerid][pPhonebook]) ? ("Yes") : ("No"));
    strcat(coordsstring,storage);

        format(storage, sizeof(storage), "{00BFFF}[Inventory]{B4B5B7}Drivers license: %s - Components: %i - Cigars: %i - Spraycans: %i/20 - Bombs: %i/3\n", (PlayerInfo[playerid][pCarLicense]) ? ("Yes") : ("No"), PlayerInfo[playerid][pComponents], PlayerInfo[playerid][pCigars], PlayerInfo[playerid][pSpraycans], PlayerInfo[playerid][pBombs]);
    strcat(coordsstring,storage);

        format(storage, sizeof(storage), "{00BFFF}[Inventory]{B4B5B7}Gasoline: %i/20L - Walkie talkie: %s - Mobile phone: %s - Drug package: %s\n", PlayerInfo[playerid][pGasCan], (PlayerInfo[playerid][pWalkieTalkie]) ? ("Yes") : ("No"), (PlayerInfo[playerid][pPhone]) ? ("Yes") : ("No"), package);
    strcat(coordsstring,storage);

        format(storage, sizeof(storage), "{00BFFF}[Inventory]{B4B5B7}Watch: %s - GPS: %s - Hollow point: %i/%i - Poison tip: %i/%i - FMJ ammo: %i/%i\n", (PlayerInfo[playerid][pWatch]) ? ("Yes") : ("No"), (PlayerInfo[playerid][pGPS]) ? ("Yes") : ("No"), PlayerInfo[playerid][pHPAmmo], GetPlayerCapacity(playerid, CAPACITY_HPAMMO), PlayerInfo[playerid][pPoisonAmmo], GetPlayerCapacity(playerid, CAPACITY_POISONAMMO), PlayerInfo[playerid][pFMJAmmo], GetPlayerCapacity(playerid, CAPACITY_FMJAMMO));
    strcat(coordsstring,storage);

        ShowPlayerDialog(playerid,1243,DIALOG_STYLE_MSGBOX, "Inventory",storage,"OK","CLOSE");

Displays me only the last line.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>