29.12.2010, 06:03
Something is wrong with the GetPlayerIP...
pawn Код:
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\PlayerConnectLog.pwn(49) : error 017: undefined symbol "playerid"
pawn Код:
public ConnectLog(string[])
{
new Year, Month, Day;
getdate(Year, Month, Day);
new PlayerIP[16];
GetPlayerIp(playerid, PlayerIP, sizeof(PlayerIP));
new entry[256];
format(entry, sizeof(entry), "[%02d.%02d.%d] {%d} %s\r\n",Day, Month, Year, PlayerIP, string);
new File:hFile;
hFile = fopen(CONNECT_LOG, io_append);
fwrite(hFile, entry);
fclose(hFile);
}