Getinfo command not displaying info.
#1

Hi, I have this problem with my GetInfo command.

When I do !getinfo [id] on IRC, it just displays this result every time:

Код:
Skin ID: 0 | IP: 49 | Ping: 0 | Score: 0 | Money: 0 | Armour: 100.000000 | Health: 100.000000
Here's the command:

Код:
IRCCMD:getinfo(botid, channel[], user[], host[], params[])
{
	new playerid, reason, skinid, pip[16], ping, score, money, float:armour, float:health, string[500];
	//Playerid

	if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
	{
	    return 1;
	}

    if (IRC_IsHalfop(botid, channel, user))
	{
		if(IsPlayerConnected(playerid))
		{
			GetPlayerSkin(playerid, skinid);
			GetPlayerIp(playerid, pip, 16);
			GetPlayerPing(playerid, ping);
			GetPlayerScore(playerid, score);
			GetPlayerMoney(playerid, money);
			GetPlayerArmour(playerid, armour);
			GetPlayerHealth(playerid, health);
			format(string, 500, "Skin ID: %d | IP: %d | Ping: %d | Score: %d | Money: %d | Armour: %0.f | Health: %0.f", skinid, pip, ping, score, money, armour, health);
			IRC_GroupSay(groupID, channel, string);
		}
	}
	return 1;
}
Also, when compiling I also get these warnings:

Код:
C:\Users\X\Desktop\irc.pwn(981) : warning 202: number of arguments does not match definition
C:\Users\X\Desktop\irc.pwn(983) : warning 202: number of arguments does not match definition
C:\Users\X\Desktop\irc.pwn(984) : warning 202: number of arguments does not match definition
C:\Users\X\Desktop\irc.pwn(985) : warning 202: number of arguments does not match definition
C:\Users\X\Desktop\irc.pwn(986) : warning 213: tag mismatch
C:\Users\X\Desktop\irc.pwn(987) : warning 213: tag mismatch
Reply


Messages In This Thread
Getinfo command not displaying info. - by NoahF - 09.12.2012, 23:21
Re: Getinfo command not displaying info. - by PlayLSX_Founder - 10.12.2012, 00:18
Re: Getinfo command not displaying info. - by NoahF - 10.12.2012, 08:53
Re: Getinfo command not displaying info. - by Ballu Miaa - 10.12.2012, 09:19
Re: Getinfo command not displaying info. - by NoahF - 10.12.2012, 09:28
Re: Getinfo command not displaying info. - by JaKe Elite - 10.12.2012, 09:36
Re: Getinfo command not displaying info. - by Ballu Miaa - 10.12.2012, 09:36
Re: Getinfo command not displaying info. - by NoahF - 10.12.2012, 09:46
Re: Getinfo command not displaying info. - by Konstantinos - 10.12.2012, 10:07
Re: Getinfo command not displaying info. - by NoahF - 10.12.2012, 10:09

Forum Jump:


Users browsing this thread: 4 Guest(s)