OnPlayerFinishedDownloading not being called on Localhost - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerFinishedDownloading not being called on Localhost (
/showthread.php?tid=651979)
OnPlayerFinishedDownloading not being called on Localhost -
seanny - 31.03.2018
Hi, I am having trouble with OnPlayerFinishedDownloading not being called on the Windows Server (Localhost)
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;
}
Console Log:
Код:
[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)
Re: OnPlayerFinishedDownloading not being called on Localhost -
NaS - 31.03.2018
Just making sure, are the models or skins successfully loaded?
If you don't have any custom models/skins try turning off artwork ("artwork 0" in server.cfg).
Re: OnPlayerFinishedDownloading not being called on Localhost -
seanny - 31.03.2018
My server does run custom models, but when I disable them using artwork 0 or re-enable them using artwork 1, it still does not work.