CMD:ip(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo й ADM [!]"); new id; new ip; new ping; new formato[128]; if(sscanf(params, "ddd", id,ip,ping)) return SendClientMessage(playerid, CINZA, "Use: /ip [ID do Player]"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO, "[!] ID Offline [!]"); GetPlayerIp(ip); GetPlayerNetworkStats(ping); format(formato, sizeof(formato), "Informaзoes do player IP:%d PING:%d " ip,ping); SendClientMessage(playerid, VERDE, formato) return 1; }
CMD:ip(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo й ADM [!]");
new id, ip[16], ping, Str[128];
if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "Use: /ip [ID do Player]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "[!] ID Offline [!]");
GetPlayerIp(id, ip, sizeof(ip));
ping = GetPlayerPing(id);
format(Str, sizeof(Str), "Informaзoes do player IP:%s PING:%d ", ip, ping);
SendClientMessage(playerid, -1, Str);
return 1;
}
format(Str, sizeof(Str), "Informaзoes do player IP:%d PING:%d " ip,ping);
SendClientMessage(playerid, VERDE, Str) <----- AQUI!!
format(Str, sizeof(Str), "Informaзoes do player IP:%d PING:%d " ip,ping);
SendClientMessage(playerid, VERDE, Str);
CMD:ip(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo й ADM [!]"); new id;, ip[16];, ping;, Str[128]; if(sscanf(params, "u", id)) return SendClientMessage(playerid, CINZA, "Use: /ip [ID do Player]"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO, "[!] ID Offline [!]"); GetPlayerIp(id, ip, sizeof(ip)); ping = GetPlayerPing(id); format(Str, sizeof(Str), "Informaзoes do player IP:%d PING:%d " ip,ping); SendClientMessage(playerid, VERDE, Str); return 1; }
Код:
CMD:ip(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo й ADM [!]"); new id;, ip[16];, ping;, Str[128]; if(sscanf(params, "u", id)) return SendClientMessage(playerid, CINZA, "Use: /ip [ID do Player]"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO, "[!] ID Offline [!]"); GetPlayerIp(id, ip, sizeof(ip)); ping = GetPlayerPing(id); format(Str, sizeof(Str), "Informaзoes do player IP:%d PING:%d " ip,ping); SendClientMessage(playerid, VERDE, Str); return 1; } C:\Users\usъario\Documents\Daniel\Server Files\LifeRolePlay\gamemodes\LRP.pwn(264) : error 017: undefined symbol "ip" C:\Users\usъario\Documents\Daniel\Server Files\LifeRolePlay\gamemodes\LRP.pwn(264) : warning 215: expression has no effect C:\Users\usъario\Documents\Daniel\Server Files\LifeRolePlay\gamemodes\LRP.pwn(264) : error 001: expected token: ";", but found "]" C:\Users\usъario\Documents\Daniel\Server Files\LifeRolePlay\gamemodes\LRP.pwn(264) : fatal error 107: too many error messages on one line poxa :/ |
new id;, ip[16];, ping;, Str[128]; ?????????
new id, ip[16], ping, Str[128];
CMD:ip(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo й ADM [!]");
new id, ip[16], ping, Str[128];
if(sscanf(params, "u", id)) return SendClientMessage(playerid, CINZA, "Use: /ip [ID do Player]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO, "[!] ID Offline [!]");
GetPlayerIp(id, ip, sizeof(ip));
ping = GetPlayerPing(id);
format(Str, sizeof(Str), "Informaзoes do player IP:%d PING:%d " ip,ping);
SendClientMessage(playerid, VERDE, Str);
return 1;
}
CMD:ip(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo й ADM [!]"); new id, ip[16], ping, Str[128]; if(sscanf(params, "u", id)) return SendClientMessage(playerid, CINZA, "Use: /ip [ID do Player]"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO, "[!] ID Offline [!]"); GetPlayerIp(id, ip, sizeof(ip)); ping = GetPlayerPing(id); format(Str, sizeof(Str), "Informaзoes do player IP:%d PING:%d " ip,ping); SendClientMessage(playerid, VERDE, Str); return 1; }
format(Str, sizeof(Str), "Informaзoes do player IP: %s PING: %d " ip,ping);
CMD:ip(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo й ADM [!]");
new id, ip[16], ping, Str[128];
if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "Use: /ip [ID do Player]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "[!] ID Offline [!]");
GetPlayerIp(id, ip, sizeof(ip));
ping = GetPlayerPing(id);
format(Str, sizeof(Str), "Informaзoes do player IP:%s PING:%d ", ip, ping);
SendClientMessage(playerid, -1, Str);
return 1;
}
CMD:ip(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo й ADM [!]");
new id, ip[16], Str[128];
if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "Use: /ip [ID do Player]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "[!] ID Offline [!]");
GetPlayerIp(id, ip, sizeof(ip));
format(Str, sizeof(Str), "Informaзoes do player IP:%s PING:%d ", ip, GetPlayerPing(id));
SendClientMessage(playerid, -1, Str);
return 1;
}