[Ajuda] Comando retornando invбlido
#6

Quote:
Originally Posted by Dwayne-Pheonix
Посмотреть сообщение
pawn Код:
CMD:meuset(playerid, params[]) {
    new bool:result = false;
    for(new car = 0; car < MAX_CARROS; car++) {
        new string[80]; format(string,sizeof(string),"Carros/carro%d.ini", car);
        if(!strcmp(DOF2_GetString(string,"Dono"), nome(playerid), true)) {
            new msg[80]; format(msg, sizeof(msg), "» {FFFFFF}Set Modelo: %d  {FF0000}»  {FFFFFF}Set ID: %d", DOF2_GetInt(string, "Modelo"), car);
            SendClientMessage(playerid, VERMELHO_ESCURO, msg);
            PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
            DOF2_SaveFile();
            result = true;
            break;
        }
    }
    if(result == false) return SendClientMessage(playerid, VERMELHO_ESCURO, "[ x ] Vocк nгo possui nenhum set.");
    return 1;
}
Teste se irб funcionar

OFF: Qual o motivo do uso de DOF2_SaveFile();
Smp que uso as funзхes do DOF2 no final coloco DOF2_SaveFile(); :P

Assim, estб returnando apenas o Set ID 0 logo apуs dando o break, no caso se eu tiver mais de um set nгo ira retornar.
Reply


Messages In This Thread
Comando retornando invбlido - by Maklister - 03.02.2013, 00:03
Re: Comando retornando invбlido - by DrAke$ - 03.02.2013, 00:25
Re: Comando retornando invбlido - by Maklister - 03.02.2013, 00:26
Re: Comando retornando invбlido - by ForT - 03.02.2013, 00:28
Re: Comando retornando invбlido - by Dwayne-Pheonix - 03.02.2013, 00:36
Re: Comando retornando invбlido - by Maklister - 03.02.2013, 00:47
Re: Comando retornando invбlido - by DrAke$ - 03.02.2013, 01:19
Re: Comando retornando invбlido - by Maklister - 03.02.2013, 01:53
Re: Comando retornando invбlido - by zSuYaNw - 03.02.2013, 02:10
Re: Comando retornando invбlido - by @LucasVinicius - 03.02.2013, 02:27

Forum Jump:


Users browsing this thread: 2 Guest(s)