SA-MP Forums Archive
A /inv command help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A /inv command help (/showthread.php?tid=391903)



A /inv command help (Will REP) - MichaelWharton101 - 12.11.2012

FIXED


Re: A /inv command help - Ballu Miaa - 12.11.2012

pawn Код:
stock ShowInv(playerid, playerb)
{
    new string[110];
    SendClientMessage(playerid, COLOR_DARKRED, "_____________________________________________________");
    format(string, sizeof(string), "Packages: %s | Materials: %d | Weed: %d | Crack: %d | Cigar: %d", RPPN(playerb), PlayerInfo[playerb][pMaterials], PlayerInfo[playerb][pWeed], PlayerInfo[playerb][pCrack], PlayerInfo[playerb][pCigar]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Sprunk: %d | Spray: %d | Ropes: %d | Blindfolds: %d", PlayerInfo[playerb][pSprunk], PlayerInfo[playerb][pSpray], PlayerInfo[playerb][pRope], PlayerInfo[playerb][pBlindfold]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Gas Can: %d | Scopes: %d | Loyalty Points: %d | Skin: %d | Int: %d | VW: %d", PlayerInfo[playerb][pGas], PlayerInfo[playerb][pScope], PlayerInfo[playerb][pLPoints], PlayerInfo[playerb][pModel], GetPlayerInterior(playerb), GetPlayerVirtualWorld(playerb));
    SendClientMessage(playerid, COLOR_GREY, string);
    format(string, sizeof(string), "Gate 1: %d | Gate 2: %d | Gate 3: %d | VIP: %s | VIP Bonus Points: %d", PlayerInfo[playerb][pGate][0], PlayerInfo[playerb][pGate][1], PlayerInfo[playerb][pGate][2], RPVIPN(playerb), PlayerInfo[playerb][pReward]);
    SendClientMessage(playerid, COLOR_VIP, string);
    SendClientMessage(playerid, COLOR_DARKRED, "_____________________________________________________");
    return 1;
}



Re: A /inv command help - MichaelWharton101 - 12.11.2012

Thanks, May I know what was wrong with it?


Respuesta: A /inv command help - ThePhenix - 12.11.2012

You haven't created an "string" variable.
PHP код:
new string[110]; 



Re: A /inv command help - MichaelWharton101 - 12.11.2012

Oh, Okay thank you for your help!