[Tutorial] Como Usar Booleans(Bool)
#4

Quote:
Originally Posted by Gustavo_Araujo
Посмотреть сообщение
[SIZE="3"]
Exemplo de Uso:
pawn Код:
new bool:SouGato[MAX_PLAYERS];

CMD:gato(playerid,params[])
{
       if(SouGato[playerid] == true) return SendClientMessage(playerid,-1,"Voce й um Gato ^^");
       if(Sougato[playerid] == false) return SendClientMessage(playerid,-1,"Voce nгo й um Gato!");
       return 1;
}
//Ou
CMD:gato(playerid,params[])
{
       if(SouGato[playerid]) return SendClientMessage(playerid,-1,"Voce й um Gato ^^");
       if(!Sougato[playerid]) return SendClientMessage(playerid,-1,"Voce nгo й um Gato!");
       return 1;
}
pawn Код:
#define SouGata SouGato
new nome[24];
for(new i; i < MAX_PLAYERS; ++i)
{
     
     if(IsPlayerConnected(i)  GetPlayerName(i, nome, 24);
     if(strcmp(nome, "[O.z]Caroline", false)) SouGata[i] = true;
}


уtimo tutorial =)
Reply


Messages In This Thread
Como Usar Booleans(Bool) - by Dolby - 23.10.2011, 01:28
Re: Como Usar Booleans(Bool) - by WLSF - 23.10.2011, 01:31
Re: Como Usar Booleans(Bool) - by Paramount. - 23.10.2011, 01:31
Re: Como Usar Booleans(Bool) - by [O.z]Caroline - 23.10.2011, 01:40
Re: Como Usar Booleans(Bool) - by Macintosh - 23.10.2011, 01:40
Re: Como Usar Booleans(Bool) - by Josma_cmd - 23.10.2011, 01:41
Re: Como Usar Booleans(Bool) - by Dolby - 23.10.2011, 01:42
Re: Como Usar Booleans(Bool) - by BrunoBSF - 23.10.2011, 02:02
Re: Como Usar Booleans(Bool) - by JonathanFeitosa - 23.10.2011, 02:14
Re: Como Usar Booleans(Bool) - by [O.z]Caroline - 23.10.2011, 03:24

Forum Jump:


Users browsing this thread: 1 Guest(s)