DayZ GiveItem to specified player. HELP
#1

Can someone help me with this error?
Код HTML:
error 076: syntax error in the expression, or invalid function call
I really don't know what's happening there!
I tried a lot of things, but didn't work for me (Maybe im low on it!)!

Heres code:
Код HTML:
CMD:giveitem(playerid,params[])
{
	if(pInfo[playerid][pAdminLevel] >= 6)
	{
		new string[64], amount;
	    if(sscanf(params, "is[64]", amount,string)) return SendClientMessage(playerid,-1,""chat" /giveallitems [amount] [item name] (MAKE SURE IT'S NOT INVALID!)");

		{
		    AddSlotToInventoryWorld(string,amount);
		}

		new str[230];
		format(str,sizeof(str),"*"COL_YELLOW" %s %s has given everyone "COL_WHITE"%i"COL_GREEN" %s",GetAdminName(playerid),PlayerName(playerid), amount, string);
	}
	return 1;
}
Reply
#2

The error in which line?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)