09.12.2012, 23:21
Hi, I have this problem with my GetInfo command.
When I do !getinfo [id] on IRC, it just displays this result every time:
Here's the command:
Also, when compiling I also get these warnings:
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
Код:
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;
}
Код:
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


