[Ajuda] Setar VIP por Dias
#8

Quote:
Originally Posted by Marcinho
Посмотреть сообщение
pow viro atй chat ae... e outra, me passaram tutorial em ingles, puts..

Vlw Don mais olha oq deu:

(9871) : error 017: undefined symbol "dd"
(9872) : error 017: undefined symbol "dd"
(9883) : error 017: undefined symbol "dd"
(9893) : error 017: undefined symbol "pname"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
if(strcmp(cmd, "/setarvip", true) == 0)
{
    if(!IsPlayerAdmin(playerid)) return 0;
    new tmp[256];
    new plid;
    new dd;
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, 0x008040AA, "(ERRO) Use: /setarvip [id][dias]");
        return 1;
    }
    dd = strtok(cmdtext, idx);
    if(!strlen(dd))
    {
        SendClientMessage(playerid, 0x008040AA, "(ERRO) Use: /setarvip [id][dias]");
        return 1;
    }
    if(IsPlayerConnected(plid))
    {
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(plid, pname, MAX_PLAYER_NAME);
        format(file2, sizeof(file2), PASTA_CONTAS, pname);
        dini_IntSet(file2, "VIP",1);
        dini_IntSet(file2, "DIAS",((gettime() + (dd * 24 * 60 * 60))));
        SpawnPlayer(plid);
        SendClientMessage(playerid, 0x00FF00AA, "(INFO) VIP Setado com sucesso");
        SendClientMessage(plid, 0x00FF00AA, "(INFO) Um admin setou VIP por para vocк aproveite ;D");
        return 1;
        }else{
        SendClientMessage(playerid, Vermelho, "(ERRO) ID invбlido");
        return 1;
    }
}
        format(file2, sizeof(file2), PASTA_CONTAS, pname);
        if(gettime() >= dini_Int(file2, "DIAS"))
        {
            // vip expirado
        }
Tenta ai!

Creditos: Don Speed
Reply


Messages In This Thread
Setar VIP por Dias - by Marcinho - 26.07.2013, 15:38
Re: Setar VIP por Dias - by Abravanel - 26.07.2013, 15:50
Re: Setar VIP por Dias - by Kuddy - 26.07.2013, 16:20
Re: Setar VIP por Dias - by Don_Speed - 26.07.2013, 16:27
Re: Setar VIP por Dias - by Abravanel - 26.07.2013, 17:10
Re: Setar VIP por Dias - by darkxdll - 26.07.2013, 17:40
Respuesta: Setar VIP por Dias - by Marcinho - 26.07.2013, 20:53
Respuesta: Setar VIP por Dias - by ViniKuliveguisky - 26.07.2013, 23:15
Respuesta: Setar VIP por Dias - by Marcinho - 27.07.2013, 18:28
Re: Setar VIP por Dias - by Standby - 27.07.2013, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)