21.09.2015, 08:52
Hello, I have a little problem with my command, I want a command that when player types /getip id he hets a players ip. Here is my command:
CMD:getip(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
new plrIP[16];
new pName[24];
new str[128];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
GetPlayerName(playerid, pName, 24);
format(str, 128, "%s IP yra %s.", pName, plrIP);
SendClientMessage(-1, str);
if(!strcmp(plrIP, "127.0.0.1"))
return 1;
}
return 1;
}
And here is one error:
D:\Documents and Settings\Administrator\Desktop\Sa-Mp Server\Drift Serveris\pawno\Login.pwn(570) : error 035: argument type mismatch (argument 2)
What is the problem?
CMD:getip(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
new plrIP[16];
new pName[24];
new str[128];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
GetPlayerName(playerid, pName, 24);
format(str, 128, "%s IP yra %s.", pName, plrIP);
SendClientMessage(-1, str);
if(!strcmp(plrIP, "127.0.0.1"))
return 1;
}
return 1;
}
And here is one error:
D:\Documents and Settings\Administrator\Desktop\Sa-Mp Server\Drift Serveris\pawno\Login.pwn(570) : error 035: argument type mismatch (argument 2)
What is the problem?