14.07.2016, 09:20
And yes. I got this error and I have to fix it. Because I'm using it for an important thing.
Do anyone have any idea? For to how to define playerid.
Do anyone have any idea? For to how to define playerid.
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success == 1) {
new Name[32], string[128];
GetPlayerName(playerid, Name, sizeof Name);
format(string, sizeof string, " %s | %s | %s",Name(playerid), ip, success);
fwrite("rcons.txt", string)
}
else
{
if(success == 0)
{
Ban(playerid);
}
}
return 1;
}