Need help!
#4

Returning the varibale won't do anything:
Try this:
pawn Код:
CMD:pauser(playerid, params[])
{
    new player, pName[MAX_PLAYER_NAME];
    if( sscanf ( params, "u", player)) return SendClientMessage(playerid, -1, "Usage: /pauser [ playerid ]");
    if(!IsPlayerConnected(player) || player == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "This player is not connected..");
    if(afksecs[ player ] > 1)
    {
        new str[ 75 ];
        GetPlayerName(player, pName, MAX_PLAYER_NAME);
        format(str, 75, "%s[%d] has been afk for %d seconds ", pName, player, afksecs[ player ]);
        SendClientMessage(playerid, -1, str);
    }
    else return SendClientMessage(playerid, -1, "This player is not pausing!");
    return 1;
}
Reply


Messages In This Thread
Need help! - by Strier - 13.06.2013, 00:53
Re: Need help! - by Kirollos - 13.06.2013, 01:02
Respuesta: Need help! - by Strier - 13.06.2013, 01:24
Re: Need help! - by PaulDinam - 13.06.2013, 01:27
Re: Respuesta: Need help! - by Kirollos - 13.06.2013, 01:36

Forum Jump:


Users browsing this thread: 1 Guest(s)