OnPlayerUpdate Doesn't work ...
#1

Hello i try to make a simple afk system but my onplayerupdate doesn't work i dont know why

this is the public
PHP код:
public OnPlayerUpdate(playerid)
{
    if(!
IsPlayerConnected(playerid)) return 0;
    print(
"[system] Work!");
    if(
GetPVarInt(playerid"AFKTime") > && !IsPlayerNPC(playerid)) SetPVarInt(playerid"AFKTime"0);
    return 
1;

it is doesn't send the work message i dont know why ...

thanks :]
Reply
#2

Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerConnected(playerid))
    {
    print("[system] Work!");
    if(GetPVarInt(playerid, "AFKTime") > 0 && !IsPlayerNPC(playerid)) SetPVarInt(playerid, "AFKTime", 0);
    }
return 1;
}
Reply
#3

doesn't work ....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)