SA-MP Forums Archive
DayZ GiveItem to specified player. 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: DayZ GiveItem to specified player. HELP (/showthread.php?tid=623248)



DayZ GiveItem to specified player. HELP - buhs - 29.11.2016

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;
}



Re: DayZ GiveItem to specified player. HELP - mongi - 30.11.2016

The error in which line?