Jump to content

Question

Posted

Nick:Johnny

Problema:Deci am fs-u lui geoip si vreau sa scot ceva din OnPlayerConnect dar nu pot + cand am pus Country la stats imi da o eroare numita Country

Erori / warnings:[pawn]D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1846) : error 017: undefined symbol "Country"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Errors.[/pawn]

Lini/script:[pawn]

    new Country[256];

GetPlayerCountry(playerid,Country);

new mess[256],IP[256];

GetPlayerIp(playerid,IP,sizeof(IP));

format(mess,sizeof(mess),"%s has joined the server.  [ Country: %s | IP Address: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid));

printf(mess);

SendClientMessageToAll(COLOR_JOIN,mess);

[/pawn]

Iar asta este problema la stats

[pawn]

format(str, sizeof(str), "%s{00aeff}Country: {ffffff}%s\n\n", str, Country,GetPName(playerid),IP,GetPlayerPing(playerid));

[/pawn]

Deci asta este la OPC nu vreau sa mai apara Scrisu cand intra pe sv

Ai incercat sa rezolvi singur ?:Habar nam ce sa-i fac:-//

Sunt un retardat

4 answers to this question

Recommended Posts

  • Administrator
Posted

Trebuie sa faci variabile "Country" globala. Cel mai bine pune-o la "playerInfo], in acel enum. Si o folosesti PlayerInfo[playerid][Country].

Posted

new Country[256];
GetPlayerCountry(playerid, Country, sizeof(Country));

format(..., ... , " %s - Country", Country);

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.