31.03.2018, 20:35
Hi, I am having trouble with OnPlayerFinishedDownloading not being called on the Windows Server (Localhost)
Here is the code for OnPlayerFinishedDownloading:
Console Log:
Here is the code for OnPlayerFinishedDownloading:
PHP код:
public OnPlayerFinishedDownloading(playerid, virtualworld)
{
print("OnPlayerFinishedDownloading called");//Only added this to confirm that it wasn't being called.
if(Player[playerid][IsLoggedIn] == false)
{
printf("OnPlayerFinishedDownloading(%d)", playerid);
new query[128];
mysql_format(g_SQL, query, sizeof(query), "SELECT * FROM `bans` WHERE `IPAddress` = '%e' LIMIT 1", GetUserIP(playerid));
mysql_tquery(g_SQL, query, "OnPlayerIPCheck", "d", playerid);
}
return 1;
}
Код:
[connection] 127.0.0.1:50292 requests connection cookie. [connection] incoming connection: 127.0.0.1:50292 id: 0 Incoming connection for player ID 0 [IP/port: 127.0.0.1:50292] [join] Seanny has joined the server (0:127.0.0.1) OnPlayerConnect Cannot save Seanny, not logged in. [part] Seanny has left the server (0:1)