PDA

View Full Version : Everyone is paused..


Voxel
13/11/2013, 03:28 PM
Hello,

So i send my server files to my friend and he started the server since i cant :\ but when we join he is paused on my screen and i am paused on his... does anyone know what is going on?

Joe_Goro
13/11/2013, 03:46 PM
if home hosted mean Lag ! slow internet or slow CPU

Pottus
13/11/2013, 03:49 PM
OnPlayerUpdate() is returning 0

Voxel
13/11/2013, 03:53 PM
Lol OnPlayerUpdate did not return anything at all

public OnPlayerUpdate(playerid)
{
new drunk2 = GetPlayerDrunkLevel(playerid);
if(drunk2 < 100)
{
SetPlayerDrunkLevel(playerid,2000);
}
else
{
if(DLlast[playerid] != drunk2)
{
new fps = DLlast[playerid] - drunk2;

if((fps > 0) && (fps < 200))
FPS2[playerid] = fps;
DLlast[playerid] = drunk2;
}
}
}

so i made it

public OnPlayerUpdate(playerid)
{
new drunk2 = GetPlayerDrunkLevel(playerid);
if(drunk2 < 100)
{
SetPlayerDrunkLevel(playerid,2000);
}
else
{
if(DLlast[playerid] != drunk2)
{
new fps = DLlast[playerid] - drunk2;

if((fps > 0) && (fps < 200))
FPS2[playerid] = fps;
DLlast[playerid] = drunk2;
}
}
return 1;
}

thanks bro!