Problema con SendClientMessage
#5

pawn Код:
dcmd_recompensas( playerid, params[ ] )
{
    #pragma unused params

    new bString[ MAX_CLIENT_MSG ], pName[ MAX_PLAYER_NAME ], counter; bString = "* ";

    SendClientMessage( playerid, COLOR_GREEN, "Recompensas:" );

    for(new i=0; i < MAX_PLAYERS; i++)
    {
        if ( pData[ i ][ P_BOUNTY ] ) //AQUI PON TU VARIABLE DE LAS RECOMPENSAS
        {
            GetPlayerName( i, pName, MAX_PLAYER_NAME );

            if ( counter > 2 )
            {
                SendClientMessage( playerid, COLOR_YELLOW, bString );
                bString = "* ";
                format( bString, sizeof( bString ), "%s%s(%d)($%d), ", bString, pName, i,pData[ i ][ P_BOUNTY ] );//PON TU VARIABLE DE LAS RECOMPENSAS
                counter = 1;
            }

            else
            {
                format( bString, sizeof( bString ), "%s%s(%d)($%d), ", bString, pName, i, pData[ i ][ P_BOUNTY ] );// PON TU VARIABLE DE LAS RECOMPENSAS
                counter++;
            }
        }
    }

    if ( strlen( bString[ 2 ] ) )
        SendClientMessage( playerid, COLOR_YELLOW, bString );

    return 1;
}
Reply


Messages In This Thread
Problema con SendClientMessage - by godoy32 - 31.10.2011, 23:47
Re: Problema con SendClientMessage - by DreamOnIt - 01.11.2011, 00:11
Respuesta: Problema con SendClientMessage - by TheChaoz - 01.11.2011, 00:14
Respuesta: Problema con SendClientMessage - by iKeN - 01.11.2011, 00:18
Re: Problema con SendClientMessage - by dis77urbio - 01.11.2011, 00:26
Respuesta: Problema con SendClientMessage - by TheChaoz - 01.11.2011, 00:52
Respuesta: Problema con SendClientMessage - by godoy32 - 01.11.2011, 01:52
Respuesta: Problema con SendClientMessage - by Ari3l - 01.11.2011, 02:17
Re: Problema con SendClientMessage - by [O.z]Caroline - 01.11.2011, 02:19
Respuesta: Problema con SendClientMessage - by TheChaoz - 01.11.2011, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)