[HELP]error 035: argument type mismatch (argument 1)
#1

PHP код:
error 035argument type mismatch (argument 1
Here is code:
Код:
CMD:xp(playerid,params[])
{
	if(pInfo[playerid][pAdminLevel] >= 7)
	{
		new xpID,string[256],xpString[64];
		if(sscanf(params, "i", xpID)) return SendClientMessage(playerid,-1,""chat" /xp [XP Type ID] (1normal,2double,3triple,4quad)");

		Map[XPType] = xpID;
		format(string,sizeof(string),""chat""COL_LIGHTBLUE" %s %s has changed the XP variable to %s",GetAdminName(playerid),PlayerName(playerid),GetXPName());
		SendClientMessageToAll(-1,string);
		format(xpString,sizeof(xpString),"%s",GetXPName());
		TextDrawSetString(XP,xpString);
        	SendRconCommand( format(xpString, sizeof(xpString), "hostname [CpG]...:::Operation Zombie[ %s ]:::...",GetXPName()); 
	}
	else return SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
	return 1;
}
Line is at SendRconCommand(+++ ect.)
Reply
#2

SendRconCommand only takes one parameter, the command which should be executed. However, you give it a format? That would only format the string and not do anything with it, so it's not really a command at all. You don't even set any XP here?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)