mismatch (argument: 1)
#1

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

		{
		    AddSlotToInventoryWorld(string,amount);
		}

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

Show AddSlotToInventoryWorld Function.
Reply
#3

Quote:
Originally Posted by DarkSkull
Посмотреть сообщение
Show AddSlotToInventoryWorld Function.
code for new?
Reply
#4

You called this function in your code:
PHP код:
AddSlotToInventoryWorld(string,amount); 
Show the real function.
Reply
#5

Quote:
Originally Posted by DarkSkull
Посмотреть сообщение
You called this function in your code:
PHP код:
AddSlotToInventoryWorld(string,amount); 
Show the real function.
Uhhh. It's alot of them there. + im using DayZ v9.1 and i want only to make that command to give a single player item.
Reply
#6

If you want to use a " in a string, you need to escape it with a backslash \.
For example:
Код:
SendClientMessage(playerid, -1, "This \"thing\" is so cool.");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)