mismatch (argument: 1) - 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: mismatch (argument: 1) (
/showthread.php?tid=611865)
mismatch (argument: 1) -
Mill - 11.07.2016
Код:
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;
}
Re: mismatch (argument: 1) -
DarkSkull - 11.07.2016
Show AddSlotToInventoryWorld Function.
Re: mismatch (argument: 1) -
Mill - 11.07.2016
Quote:
Originally Posted by DarkSkull
Show AddSlotToInventoryWorld Function.
|
code for new?
Re: mismatch (argument: 1) -
DarkSkull - 11.07.2016
You called this function in your code:
PHP код:
AddSlotToInventoryWorld(string,amount);
Show the real function.
Re: mismatch (argument: 1) -
Mill - 11.07.2016
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.
Re: mismatch (argument: 1) -
Freaksken - 11.07.2016
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.");