[Ajuda] BUG NA CONTAGEM DE PLAYERS OUVINDO RADIO!!
#2

faзa desse code sua base

PHP Code:
#include    <foreach>
#include    <zcmd>
new Usou1[MAX_PLAYERS], Usou2[MAX_PLAYERS], Usou3[MAX_PLAYERS];
public 
OnPlayerConnect(playerid){
     
Usou1[playerid] = 0;
     
Usou2[playerid] = 0;
     
Usou3[playerid] = 0;
     return 
1;
}
public 
OnPlayerDisconnect(playerid){
     
Usou1[playerid] = 0;
     
Usou2[playerid] = 0;
     
Usou3[playerid] = 0;
     return 
1;
}
CMD:radio(playerid){
     foreach(
Playeri){
        if(
OuvindoRadio[i] == trueUsou1[i] ++;
    if(
OuvindoRadio2[i] == trueUsou2[i] ++;
    if(
OuvindoRadio3[i] == trueUsou3[i] ++;
  }
  return 
1;
}
CMD:ouvintes(playerid){
    new 
string[40];
    
    foreach(
Playeri){
    
        if(
OuvindoRadio[i] == true){
            
format(stringsizeof(string), "%d Ouvintes Radio 1"Usou1[i]);
            
SendClientMessageToAll(coresstring);
        }
        if(
OuvindoRadio2[i] == true){
        
            
format(stringsizeof(string), "%d Ouvintes Radio 2"Usou2[i]);
            
SendClientMessageToAll(coresstring);
        }
        
        if(
OuvindoRadio3[i] == true){
        
            
format(stringsizeof(string), "%d Ouvintes Radio 3"Usou3[i]);
            
SendClientMessageToAll(coresstring);
        }
    }
    return 
1;

Reply


Messages In This Thread
BUG NA CONTAGEM DE PLAYERS OUVINDO RADIO!! - by Gleidson - 21.11.2017, 02:33
Re: BUG NA CONTAGEM DE PLAYERS OUVINDO RADIO!! - by Coringa_Vilao - 21.11.2017, 04:05
Re: BUG NA CONTAGEM DE PLAYERS OUVINDO RADIO!! - by SammyJ - 21.11.2017, 10:53

Forum Jump:


Users browsing this thread: 1 Guest(s)