[Ajuda] Ajuda nesse comando.
#2

pawn Код:
for(new carro = 0; carro < MAX_CARROS; carro++)
{
format(string, sizeof(string), "carro%d.ini", carro);
if(strcmp(dini_Get(string, "Dono"), pname, true) == 0){
SendClientMessage(playerid, Vermelho, "Vocк jб tem um carro");
return 1;
}
Essa й a parte que faz a checagem se o jogador jб tem um carro, entгo basta trocar por esta que logicamente vai funcionar:

pawn Код:
for ( new carro = 0 ; carro < MAX_CARROS ; carro++ )
{
    new
        int_player_cars [ MAX_PLAYERS ] ;
       
    format ( string, sizeof ( string ) , "carro%d.ini", carro ) ;
   
    if ( strcmp ( dini_Get ( string, "Dono" ), pname, true ) == 0)
        int_player_cars [ playerid ] ++;
       
    if ( int_player_cars [ playerid ]  == 3 )
        return SendClientMessage ( playerid, Vermelho, "Vocк jб tem 3 carros!" ) ;
}
Caso nгo funcionar, sу postar

Abraзos.
Reply


Messages In This Thread
Ajuda nesse comando. - by Equipe - 27.12.2012, 13:12
Re: Ajuda nesse comando. - by Lуs - 01.01.2013, 03:49
Re: Ajuda nesse comando. - by zSuYaNw - 01.01.2013, 04:00
Re: Ajuda nesse comando. - by Equipe - 01.01.2013, 12:12
Re: Ajuda nesse comando. - by Lуs - 01.01.2013, 15:17
Re: Ajuda nesse comando. - by Equipe - 01.01.2013, 16:19
Re: Ajuda nesse comando. - by Equipe - 02.01.2013, 01:35
Re: Ajuda nesse comando. - by Lуs - 02.01.2013, 03:16

Forum Jump:


Users browsing this thread: 2 Guest(s)