[Ajuda] Comando retornando invбlido
#1

Enfim, mesmo eu tendo meu nome no arquivo do veнculo como dono, estб retornando que eu nгo tenho set

pawn Код:
CMD:meuset(playerid, params[])
{
    new msg[80];
    new result;
    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) == 0)
        {
            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 = 1;
            return 1;
        }
        if(result == 0)
        {
            SendClientMessage(playerid, VERMELHO_ESCURO, "[ x ] Vocк nгo possui nenhum set.");
            return 1;
        }
    }
    return 1;
}
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: 1 Guest(s)