Scripting Help Rep+
#1

Solved
Reply
#2

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

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

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

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;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)