Command Problem
#1

Well, I have a little problem. I made this command but seems that when I do /inventory , it shows only ID 0's Inventory. I already tested it.

Код:
CMD:inventory(playerid, params[])
{
    new playerb, string[128];
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
   	SendClientMessage(playerid, COLOR_ORANGE, "Your Inventory:");
	format(string, sizeof(string), "Packages: %s | Materials: %d | Weed: %d | Crack: %d | Cigar: %d | Sprunk: %d | Ropes: %d | Blindfolds: %d", RPPN(playerb), PlayerInfo[playerb][pMaterials], PlayerInfo[playerb][pWeed], PlayerInfo[playerb][pCrack], PlayerInfo[playerb][pCigar], PlayerInfo[playerb][pSprunk], PlayerInfo[playerb][pRope], PlayerInfo[playerb][pBlindfold]);
	SendClientMessage(playerid, COLOR_WHITE, string);
	return 1;
}
Reply


Messages In This Thread
Command Problem - by Eugene. - 07.09.2012, 21:26
Re: Command Problem - by clarencecuzz - 07.09.2012, 21:36
Re: Command Problem - by Eugene. - 07.09.2012, 21:38
Re: Command Problem - by clarencecuzz - 07.09.2012, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)