02.03.2012, 23:09
Whenever i compile this it says Argument type mismatch
two errors
1 on
GetPlayerName(tmp, pName, sizeof(pName));
and one on
GetPlayerIp(tmp, Ip, sizeof(Ip));
pawn Код:
if(strcmp(cmd, "/ip", true, 3) == 0)
{
if(PlayerInfo[playerid][Admin] >= 1)
{
tmp = strtok(cmdtext, idx);
GetPlayerName(tmp, pName, sizeof(pName));
GetPlayerIp(tmp, Ip, sizeof(Ip));
format(string, sizeof(string), "%s IP is %s", pName, Ip);
SendClientMessage(playerid, 0xFF0000AA, string);
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "You are not Admin");
}
return 1;
}
return 0;
1 on
GetPlayerName(tmp, pName, sizeof(pName));
and one on
GetPlayerIp(tmp, Ip, sizeof(Ip));