27.06.2013, 11:44
PHP код:
error 035: argument type mismatch (argument 1)
Код:
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; }