Stats needed
#1

EDITED
Reply
#2

Anyone ? Please i need fast for update..
Reply
#3

This might work, I haven't tested it with strings, floats etc, but it compiles.

pawn Код:
enum stats
{
    stat1,
    stat2[64],
    Float:stat3
}
new s[MAX_PLAYERS][stats];

stock copyStats(player,target)
{
    for(new i; stats:i < stats; i++)
    {
        s[target][stats:i] = s[player][stats:i];
    }
    return 1;
}

// or in a macro

#define copyStats(%0,%1) for(new i; stats:i < stats; i++) s[%1][stats:i] = s[%0][stats:i];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)