30.05.2013, 14:37
pawn Код:
#define MAX_EJEMPLO (3)
enum Info {
bool:opciones,
};
new Ejemplo[MAX_PLAYERS][Info];
if(Funcion(playerid,Ejemplo,opciones,MAX_EJEMPLO)) {
//SendClientMessage....
return true;
}
stock Funcion(playerid,bool:var[][],ocu,max) {
new count=0;
for(new player=0; player<GetMaxPlayers(); player++)
if(IsPlayerConnected(player) && var[player][ocu]==true && player==playerid) count++;
if(count==max) return true;
return false;
}
pawn Код:
stock Funcion(playerid,bool:var[][],ocu,max) {