SA-MP Forums Archive
Scripting Help Rep+ - 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: Scripting Help Rep+ (/showthread.php?tid=560027)



Scripting Help Rep+ - HydraHumza - 26.01.2015

Solved


Re: Scripting Help Rep+ - Ironboy - 26.01.2015

Take off the time from the function heading and define it itself the callback or outside of it.
pawn Код:
public OnPlayerResume(playerid)



Re: Scripting Help Rep+ - nezo2001 - 26.01.2015

PHP код:
forward OnPlayerResume(playeridtime); 
befoe these lines


Re: Scripting Help Rep+ - HydraHumza - 26.01.2015

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
PHP код:
forward OnPlayerResume(playeridtime); 
befoe these lines
Works Thanks Rep++ for both of u


Re: Scripting Help Rep+ - Arxalan - 26.01.2015

PHP код:
public OnPlayerResume(playerid, )
{
        new 
time;
    if(
Capturingplayerid} )
    {
        if(
time >= 4000)
        {
            new 
string[74];
            new 
name[MAX_PLAYER_NAME];
            
GetPlayerName(playeridnamesizeof(name));
            
format(stringsizeof(string), "** %s[%d] was AFK for 4(or more) seconds, WHILE CAPTURING!"nameplayerid);
            
MessageToAdmins(C_REDstring);
        }
        else
        {
            
AFKplayerid } = false;
        }
    }
    
AFKplayerid } = false;
    return 
1;