PDA

View Full Version : Scripting Help Rep+


HydraHumza
26/01/2015, 02:33 PM
Solved

Ironboy
26/01/2015, 02:36 PM
Take off the time from the function heading and define it itself the callback or outside of it.
public OnPlayerResume(playerid)

nezo2001
26/01/2015, 02:36 PM
forward OnPlayerResume(playerid, time);
befoe these lines

HydraHumza
26/01/2015, 02:40 PM
forward OnPlayerResume(playerid, time);
befoe these lines

Works Thanks Rep++ for both of u

Arxalan
26/01/2015, 02:51 PM
public OnPlayerResume(playerid, )
{
new time;
if(Capturing{ playerid} )
{
if(time >= 4000)
{
new string[74];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));

format(string, sizeof(string), "** %s[%d] was AFK for 4(or more) seconds, WHILE CAPTURING!", name, playerid);
MessageToAdmins(C_RED, string);
}
else
{
AFK{ playerid } = false;
}
}
AFK{ playerid } = false;
return 1;
}