stock error
#3

Код:
CMD:targetinv(playerid,params[])
{
	new targetid = strval(params);
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,"Wrong player ID");
    if(pInfo[playerid][pAdminLevel] >= 2)
    {
	  ShowTargetInventory(targetid);
	 }
	else {
		SendClientMessage(playerid,-1,"*"COL_RED" You ain't admin biatch!");
	}
	return 1;
}
Also, before you go in-depth item and inventory system, I highly recommend you to use iterators (from YSI/y_iterate or foreach).
Reply


Messages In This Thread
stock error - by Zeus666 - 24.01.2018, 13:25
Re: stock error - by alanhutch - 24.01.2018, 14:33
Re: stock error - by Marricio - 24.01.2018, 14:50
Re: stock error - by Zeus666 - 24.01.2018, 17:21
Re: stock error - by rfr - 24.01.2018, 18:30
Re: stock error - by Zeus666 - 24.01.2018, 21:53
Re: stock error - by Marricio - 25.01.2018, 02:51

Forum Jump:


Users browsing this thread: 3 Guest(s)