[Ajuda] Erro no fs
#1

Estou Com esses erros

PHP код:
(187) : error 017undefined symbol "fadeIn"
(217) : error 017undefined symbol "fadeOut"
(229) : error 017undefined symbol "fadeOut"
(438) : error 017undefined symbol "FadeIn"
(475) : warning 203symbol is never used"Seifader_OnExit"
(475) : warning 203symbol is never used"Seifader_OnInit"
(475) : warning 203symbol is never used"Seifader_OnPlayerDisconnect"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Nesse FS alguem pode me ajudar ?
PHP код:
#include        a_samp
    #include        progress
    #include        zcmd
    #include        fader
    #include    DOF2
    #pragma tabsize 0
    #define         CARDAPIO                1978
    #define     HOTEL           1979
    #define         PASTA_CONTAS    "/DiiMeNoR/%s.ini"
    // Necessбrio criar a pasta 'DiiMeNoR' em suas scriptfiles ou o sistema nгo ira funcionar.
    
new Bar:barfomeBar:barsedeBar:barsono;
    new 
Text:TextFomeText:TextSedeText:TextSonoText:Box;
    new 
ContagemSono[MAX_PLAYERS];
    new 
CorrigirVar[MAX_PLAYERS];
    new 
Cercas[12];
    new 
entradasaidaentradahotelsaidahotel;
    new 
bool:lanchonete[MAX_PLAYERS];
    new 
arquivo[30];
    
    new 
bool:mFome[MAX_PLAYERS], bool:mSede[MAX_PLAYERS];
    public 
OnFilterScriptInit()
    {
            
barfome CreateProgressBar(505.00123.0084.503.200xFF283DAA100.0);
            
barsede CreateProgressBar(505.00143.0084.503.200x384BFFAA100.0);
            
barsono CreateProgressBar(505.00164.0084.503.200xF3FF10AA100.0);
            
entrada CreatePickup(1318231352.1377,-1552.8381,13.5469, -1);
            
saida CreatePickup(131823363.2614, -74.81931001.5078, -1);
            
entradahotel CreatePickup(131823328.5529,-1513.7094,36.0391, -1);
            
saidahotel CreatePickup(131823346.7430,309.8346,999.1557, -1);
            
SetProgressBarValue(barfome100);
            
SetProgressBarValue(barsede100);
            
SetProgressBarValue(barsono100);
            
TextFome TextDrawCreate(500.000000109.000000"FOME:");
            
TextSede TextDrawCreate(500.000000129.000000"SEDE:");
            
TextSono TextDrawCreate(500.000000150.000000"SONO:");
            
Box TextDrawCreate(603.000000105.000000"_");
            
TextDrawUseBox(Box1);
            
TextDrawTextSize(Box,493.0000001.000000);
            
TextDrawLetterSize(Box,0.5000008.099987);
            
TextDrawBoxColor(Box,0x00000066);
            
TextDrawSetShadow(TextFome,0);
            
TextDrawSetShadow(TextSede,0);
            
TextDrawSetShadow(TextSono,0);
            
Objetos();
            
DisableInteriorEnterExits();
            for(new 
012i++) SetObjectMaterial(Cercas[i], 019341"egg_texts""easter_egg01"0xFFFFFFFF);
            return 
1;
    }
    public 
OnPlayerSpawn(playerid)
    {
        
SetTimerEx("Fome"20000true"i"playerid);
        
SetTimerEx("Sede"15000true"i"playerid);
        
ContagemSono[playerid] = SetTimerEx("Sono"35000true"i"playerid);
        return 
1;
    }
    public 
OnFilterScriptExit()
    {
        
DOF2_Exit();
            return 
false;
    }
    public 
OnPlayerPickUpPickup(playeridpickupid)
    {
            if(
pickupid == entrada)
            {
            
SetPlayerInterior(playerid10);
            
SetPlayerPos(playerid369.1026,-72.1459,1001.5078);
            
SendClientMessage(playerid, -1,"|Lanchonete| Use /cardapio para ver a lista de comidas.");
            
lanchonete[playerid] = true;
            
CorrigirVar[playerid] = SetTimerEx("Corrigir"1000true"i"playerid);
            }
            if(
pickupid == saida)
            {
            
SetPlayerInterior(playerid0);
            
SetPlayerPos(playerid1349.6332, -1551.575113.5469);
            
lanchonete[playerid] = false;
            
KillTimer(CorrigirVar[playerid]);
            }
            if(
pickupid == entradahotel)
            {
                    
ShowPlayerDialog(playeridHOTELDIALOG_STYLE_MSGBOX,"Hotel Rooms","Para usar o hotel vocк tem que alugar um quarto\nNo valor de 100R$.\nDeseja alugar?\n\n","Alugar","Cancelar");
            }
            if(
pickupid == saidahotel)
            {
            if(
GetPVarInt(playerid,"Sono") <= 60) return SendClientMessage(playerid,-1,"Vocк estб com sono e nгo pode sair do Hotel antes de durmir!");
            
SetPlayerPos(playerid335.1270,-1519.3262,35.8672);
            
SetPlayerInterior(playerid0);
            }
            return 
0;
    }
    public 
OnPlayerConnect(playerid)
    {
            static 
diimenor[80];
        
RemoveBuildingForPlayer(playerid41161345.6250, -1552.960948.51560.25);
            
RemoveBuildingForPlayer(playerid41131345.6250, -1552.960948.51560.25);
            
SetPlayerMapIcon(playerid01352.1377, -1552.838113.5469500MAPICON_GLOBAL);
            
SetPlayerMapIcon(playerid1,335.1270,-1519.3262,35.8672400MAPICON_GLOBAL);
            
lanchonete[playerid] = false;
            for(new 
iMAX_PLAYERS++)
            {
                    if(
IsPlayerConnected(i))
                    {
                            
ShowProgressBarForPlayer(ibarfome);
                            
ShowProgressBarForPlayer(ibarsede);
                            
ShowProgressBarForPlayer(ibarsono);
                            
TextDrawShowForPlayer(iTextFome);
                            
TextDrawShowForPlayer(iTextSede);
                            
TextDrawShowForPlayer(iTextSono);
                            
TextDrawShowForPlayer(iBox);
                    }
            }
            
format(arquivosizeof(arquivo), PASTA_CONTASPlayerName(playerid));
        if(
DOF2_FileExists(arquivo))
        {
            
SetPVarInt(playerid,"Fome"DOF2_GetInt(arquivo"Fome"));
            
SetPVarInt(playerid,"Sede"DOF2_GetInt(arquivo"Sede"));
            
SetPVarInt(playerid,"Sono"DOF2_GetInt(arquivo"Sono"));
            
SetProgressBarValue(barfomeDOF2_GetInt(arquivo"Fome"));
            
SetProgressBarValue(barsedeDOF2_GetInt(arquivo"Sede"));
            
SetProgressBarValue(barsonoDOF2_GetInt(arquivo"Sono"));
            
UpdateProgressBar(barfomeplayerid);
            
UpdateProgressBar(barsedeplayerid);
            
UpdateProgressBar(barsonoplayerid);
                    
format(diimenorsizeof(diimenor), "Carregando necessidades de %s"PlayerName(playerid));
            print(
diimenor);
        }
        else
        {
            
DOF2_CreateFile(arquivo);
            
DOF2_SetInt(arquivo"Fome"100);
            
DOF2_SetInt(arquivo"Sede"100);
            
DOF2_SetInt(arquivo"Sono"100);
            
SetPVarInt(playerid,"Fome"DOF2_GetInt(arquivo"Fome"));
            
SetPVarInt(playerid,"Sede"DOF2_GetInt(arquivo"Sede"));
            
SetPVarInt(playerid,"Sono"DOF2_GetInt(arquivo"Sono"));
            
SetProgressBarValue(barfomeDOF2_GetInt(arquivo"Fome"));
            
SetProgressBarValue(barsedeDOF2_GetInt(arquivo"Sede"));
            
SetProgressBarValue(barsonoDOF2_GetInt(arquivo"Sono"));
            
UpdateProgressBar(barfomeplayerid);
            
UpdateProgressBar(barsedeplayerid);
            
UpdateProgressBar(barsonoplayerid);
            
DOF2_SaveFile();
                    
format(diimenorsizeof(diimenor), "Criando arquivo de necessidades de %s"PlayerName(playerid));
            print(
diimenor);
        }
            return 
1;
    }
    
forward Fome(playerid);
    public 
Fome(playerid)
    {
        
SetPVarInt(playerid,"Fome"GetPVarInt(playerid,"Fome")-1);
        
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
        
UpdateProgressBar(barfome,playerid);
        if(
GetPVarInt(playerid,"Fome") <= 10)
        {
            
SendClientMessage(playerid,-1,"Vб atй a lanchonete comer ou irб morrer de fome!");
        }
        if(
GetPVarInt(playerid,"Fome") <= 0)
        {
                    
SetPlayerHealth(playerid0);
                    
SendClientMessage(playerid, -1"Vocк morreu de fome. Coma algo na lanchonete!");
                    
mFome[playerid] = true;
            }
        return 
1;
    }
    
forward Sono(playerid);
    public 
Sono(playerid)
    {
        
SetPVarInt(playerid,"Sono",GetPVarInt(playerid,"Sono")-1);
        
SetProgressBarValue(barsonoGetPVarInt(playerid,"Sono"));
        
UpdateProgressBar(barsono,playerid);
        if(
GetPVarInt(playerid,"Sono") <= 10)
        {
            
SendClientMessage(playerid,-1,"Vocк esta passando mal por excesso de sono, se nгo durmir podera desmaiar.");
            
SetPlayerDrunkLevel(playerid4000);
        }
        if(
GetPVarInt(playerid,"Sono") <= 0)
        {
            
SetPlayerDrunkLevel(playerid0);
            
ApplyAnimation(playerid,"CRACK""crckdeth2"4.011110);
            
fadeIn(playerid80000x000000FF);
            
KillTimer(ContagemSono[playerid]);
                    
SendClientMessage(playerid, -1,"Vocк desmaiou por excesso de sono...");
                    
SetTimerEx("AcordarDes"40000false"i"playerid);
                    
TogglePlayerControllable(playeridfalse);
        }
        return 
1;
    }
    
forward Sede(playerid);
    public 
Sede(playerid)
    {
        
SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")-1);
        
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
        
UpdateProgressBar(barsede,playerid);
        if(
GetPVarInt(playerid,"Sede") <= 10)
        {
            
SendClientMessage(playerid,-1,"Vocк estб com fome, coma algo na lanchonete ou ira morrer!");
        }
        if(
GetPVarInt(playerid,"Sede")<= 0)
        {
                    
SetPlayerHealth(playerid0);
                    
SendClientMessage(playerid, -1"Vocк morreu desnutrido. Beba algo na lanchonete!");
                    
mSede[playerid] = true;
            }
        return 
1;
    }
    
forward Acordar(playerid);
    public 
Acordar(playerid)
    {
            
TogglePlayerControllable(playeridtrue);
            
fadeOut(playerid100000x000000FF);
        
ClearAnimations(playerid);
        
ContagemSono[playerid] = SetTimerEx("Sono"35000true"i"playerid);
        
SetProgressBarValue(barsono100);
        
UpdateProgressBar(barsonoplayerid);
        
SetPVarInt(playerid,"Sono"100);
        return 
1;
    }
    
forward AcordarDes(playerid);
    public 
AcordarDes(playerid)
    {
        
TogglePlayerControllable(playeridtrue);
            
fadeOut(playerid100000x000000FF);
        
ClearAnimations(playerid);
        
ContagemSono[playerid] = SetTimerEx("Sono"35000true"i"playerid);
        
SetProgressBarValue(barsono30);
        
UpdateProgressBar(barsonoplayerid);
        
SetPVarInt(playerid,"Sono"30);
        
SendClientMessage(playerid, -1,"Vocк acordou, durma (/durmir) para nгo desmaiar novamente!");
        return 
1;
    }
    public 
OnPlayerDeath(playerid ,killeridreason)
    {
            if(
mFome[playerid] == true)
            {
                    
SetProgressBarValue(barfome30);
            
UpdateProgressBar(barfomeplayerid);
            
SetPVarInt(playerid,"Fome"30);
            
mSede[playerid] = false;
            }
            else if(
mSede[playerid] == true)
            {
            
SetProgressBarValue(barsede30);
            
SetPVarInt(playerid,"Sede"30);
            
UpdateProgressBar(barsedeplayerid);
            
mSede[playerid] = false;
            }
            return 
1;
    }
    
forward SalvarDiiMeNoR(playerid);
    public 
SalvarDiiMeNoR(playerid)
    {
        
format(arquivosizeof(arquivo), PASTA_CONTASPlayerName(playerid));
        if(
DOF2_FileExists(arquivo))
        {
            
DOF2_SetInt(arquivo"Fome"GetPVarInt(playerid,"Fome"));
            
DOF2_SetInt(arquivo"Sede"GetPVarInt(playerid,"Sede"));
            
DOF2_SetInt(arquivo"Sono"GetPVarInt(playerid,"Sono"));
            
DOF2_SaveFile();
        }
        return 
1;
    }
    public 
OnPlayerDisconnect(playeridreason)
    {
        
SalvarDiiMeNoR(playerid);
            return 
1;
    }
    public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
    {
            if(
dialogid == CARDAPIO)
            {
                if(!
response) { return 1; }
                    switch(
listitem)
            {
                case 
0://Pizza
                            
{
                                if(
GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$50 para comprar!");
                                if(
GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                
GivePlayerMoney(playerid, -50);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Pizza'");
                            
SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
                            
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
                            
UpdateProgressBar(barfome,playerid);
                            }
                            case 
1://Macarronada
                            
{
                                if(
GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$20 para comprar!");
                                if(
GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                
GivePlayerMoney(playerid, -20);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Macarronada'");
                            
SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+15);
                            
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
                            
UpdateProgressBar(barfome,playerid);
                            }
                            case 
2://Marmitex
                            
{
                                if(
GetPlayerMoney(playerid) < 12) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$12 para comprar!");
                                if(
GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                
GivePlayerMoney(playerid, -12);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Marmitйx'");
                            
SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
                            
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
                            
UpdateProgressBar(barfome,playerid);
                            }
                            case 
3://Salmгo Grelhado
                            
{
                                if(
GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$20 para comprar!");
                                if(
GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                
GivePlayerMoney(playerid, -20);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Salmгo Grelhado'");
                            
SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+30);
                            
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
                            
UpdateProgressBar(barfome,playerid);
                            }
                            case 
4://Bacalhau
                            
{
                                if(
GetPlayerMoney(playerid) < 21) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$21 para comprar!");
                                if(
GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                
GivePlayerMoney(playerid, -21);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Bacalhau'");
                            
SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+20);
                            
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
                            
UpdateProgressBar(barfome,playerid);
                            }
                            case 
5://Agua
                            
{
                                if(
GetPlayerMoney(playerid) < 5) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$5 para comprar!");
                                if(
GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                
ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                
GivePlayerMoney(playerid, -5);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de beber 'Бgua'");
                            
SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+5);
                            
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
                            
UpdateProgressBar(barsede,playerid);
                            }
                            case 
6://Suco
                            
{
                                if(
GetPlayerMoney(playerid) < 12) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$12 para comprar!");
                                if(
GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                
ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                
GivePlayerMoney(playerid, -12);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de beber 'Suco'");
                            
SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+10);
                            
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
                            
UpdateProgressBar(barsedeplayerid);
                            }
                            case 
7://Refrigerante
                            
{
                                if(
GetPlayerMoney(playerid) < 17) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$17 para comprar!");
                                if(
GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                
ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                
GivePlayerMoney(playerid, -17);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de beber 'Refrigerante'");
                            
SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+15);
                            
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
                            
UpdateProgressBar(barsede,playerid);
                            }
                            case 
8://Energetico
                            
{
                                if(
GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$100 para comprar!");
                                if(
GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                
ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                
GivePlayerMoney(playerid,-100);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de beber 'Energetico'");
                            
SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+40);
                            
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
                            
UpdateProgressBar(barsede,playerid);
                            }
                    }
            }
            if(
dialogid == HOTEL)
            {
            if(
response)
                    {
                        if(
GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1,"|HOTEL| Vocк nгo tem R$100 para alugar!");
                        if(
GetPVarInt(playerid,"Sono") >= 75) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta com sono!");
                            
SetPlayerPos(playerid345.4432,302.6292,999.9382);
                            
SetPlayerInterior(playerid6);
                            
SendClientMessage(playerid, -1"|Hotel| Para dumir use (/durmir), em cima da cama");
                            
GivePlayerMoney(playerid, -100);
            }
            else
                    {
                            
SendClientMessage(playerid, -1"Vocк optou por nгo alugar, pode durmir em sua casa.");
            }
            }
            return 
0;
    }
    
forward Corrigir(playerid);
    public 
Corrigir(playerid)
    {
            if(
GetPVarInt(playerid,"Sede") > 100)
            {
                    
SetPVarInt(playerid,"Sede"100);
                    
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
                    
UpdateProgressBar(barsede,playerid);
            }
            if(
GetPVarInt(playerid,"Fome") > 100)
            {
                    
SetPVarInt(playerid,"Fome"100);
                    
SetProgressBarValue(barsedeGetPVarInt(playerid,"Fome"));
                    
UpdateProgressBar(barsedeplayerid);
            }
            return 
false;
    }
    
CMD:cardapio(playerid)
    {
            if(
lanchonete[playerid] == true)
            {
            
ShowPlayerDialog(playeridCARDAPIO ,DIALOG_STYLE_LIST,"Cardбpio Lanchonete","- Pizza\t{00EE76}R$150\n- Macarronada\t{00EE76}R$200\n- Marmitex\t{00EE76}R$120\n- Salmгo Grelhado\t{00EE76}R$200\n- Bacalhau\t{00EE76}R$210\n- Бgua\t{00EE76}R$5\n- Suco\t{00EE76}R$12\n- Refrigerante\t{00EE76}R$17\n- Energetico\t{00EE76}R$100\n\n","Aceitar","Cancelar");
            }
            else
            {
                    
SendClientMessage(playerid, -1,"[ERRO]Vocк nгo esta na lanchonete!");
            }
        return 
1;
    }
    
CMD:durmir(playerid)
    {
            if(!
IsPlayerInRangeOfPoint(playerid2.0345.4432,302.6292,999.9382)) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta em cima da cama!");
        if(
GetPVarInt(playerid,"Sono") >= 75) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta com sono!");
        
TogglePlayerControllable(playeridfalse);
            
SetPlayerDrunkLevel(playerid0);
            
ApplyAnimation(playerid,"CRACK""crckdeth2"4.011110);
            
KillTimer(ContagemSono[playerid]);
            
FadeIn(playerid80000x000000FF);
            
SetTimerEx("Acordar"40000false"i"playerid);
            return 
1;
    }
    
stock Objetos()
    {
        
CreateObject(167811355.200000, -1553.70000012.4000000.0000000.000000254.000000);
        
Cercas[0] = CreateObject(14081358.100000, -1570.60000013.1000000.0000000.000000345.000000);
        
Cercas[1] = CreateObject(14081353.100000, -1569.20000013.1000000.0000000.000000344.998000);
        
Cercas[2] = CreateObject(14081348.100000, -1567.80000013.1000000.0000000.000000344.998000);
        
Cercas[3] = CreateObject(14081343.100000, -1566.40000013.1000000.0000000.000000344.998000);
        
Cercas[4] = CreateObject(14081330.300000, -1563.00000013.1000000.0000000.000000346.998000);
        
Cercas[5] = CreateObject(14081325.200000, -1562.30000013.1000000.0000000.000000356.998000);
        
Cercas[6] = CreateObject(14081327.900000, -1537.00000013.1000000.0000000.000000248.000000);
        
Cercas[7] = CreateObject(14081326.100000, -1541.90000013.1000000.0000000.000000252.000000);
        
Cercas[8] = CreateObject(14081324.900000, -1546.90000013.1000000.0000000.000000262.000000);
        
Cercas[9] = CreateObject(14081324.100000, -1552.00000013.1000000.0000000.000000260.000000);
        
Cercas[10] = CreateObject(14081323.300000, -1557.10000013.1000000.0000000.000000262.000000);
        
Cercas[11] = CreateObject(14081323.000000, -1559.50000013.1000000.0000000.000000262.000000);
        
CreateObject(41001336.100000, -1535.00000014.2000000.0000000.000000316.000000);
        
CreateObject(41001349.700000, -1536.20000014.2000000.0000000.000000314.000000);
        
CreateObject(41001363.100000, -1538.90000014.2000000.0000000.000000304.000000);
        
CreateObject(15941325.900000, -1559.80000013.0000000.0000000.0000000.000000);
        
CreateObject(15941330.900000, -1560.00000013.0000000.0000000.0000000.000000);
        
CreateObject(15941346.100000, -1544.60000013.0000000.0000000.0000000.000000);
        
CreateObject(146571334.600000, -1543.40000013.1000000.0000000.00000084.000000);
        
CreateObject(12811334.700000, -1544.00000013.3000000.0000000.0000000.000000);
        
CreateObject(15821334.100000, -1549.50000013.4000000.0000000.0000000.000000);
        
CreateObject(24201341.100000, -1565.90000012.8000000.0000000.000000344.000000);
        
CreateObject(9551350.600000, -1555.70000012.5000000.0000000.000000256.000000);
    }
    
stock PlayerName(playerid)
    {
            static 
name[MAX_PLAYER_NAME];
            
GetPlayerName(playerid,name,sizeof(name));
            return 
name;
    } 
Reply
#2

Quote:
Originally Posted by bnvowna
Посмотреть сообщение
Estou Com esses erros

PHP код:
(187) : error 017undefined symbol "fadeIn"
(217) : error 017undefined symbol "fadeOut"
(229) : error 017undefined symbol "fadeOut"
(438) : error 017undefined symbol "FadeIn"
(475) : warning 203symbol is never used"Seifader_OnExit"
(475) : warning 203symbol is never used"Seifader_OnInit"
(475) : warning 203symbol is never used"Seifader_OnPlayerDisconnect"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Nesse FS alguem pode me ajudar ?
PHP код:
#include        a_samp
    #include        progress
    #include        zcmd
    #include        fader
    #include    DOF2
    #pragma tabsize 0
    #define         CARDAPIO                1978
    #define     HOTEL           1979
    #define         PASTA_CONTAS    "/DiiMeNoR/%s.ini"
    // Necessбrio criar a pasta 'DiiMeNoR' em suas scriptfiles ou o sistema nгo ira funcionar.
    
new Bar:barfomeBar:barsedeBar:barsono;
    new 
Text:TextFomeText:TextSedeText:TextSonoText:Box;
    new 
ContagemSono[MAX_PLAYERS];
    new 
CorrigirVar[MAX_PLAYERS];
    new 
Cercas[12];
    new 
entradasaidaentradahotelsaidahotel;
    new 
bool:lanchonete[MAX_PLAYERS];
    new 
arquivo[30];
    
    new 
bool:mFome[MAX_PLAYERS], bool:mSede[MAX_PLAYERS];
    public 
OnFilterScriptInit()
    {
            
barfome CreateProgressBar(505.00123.0084.503.200xFF283DAA100.0);
            
barsede CreateProgressBar(505.00143.0084.503.200x384BFFAA100.0);
            
barsono CreateProgressBar(505.00164.0084.503.200xF3FF10AA100.0);
            
entrada CreatePickup(1318231352.1377,-1552.8381,13.5469, -1);
            
saida CreatePickup(131823363.2614, -74.81931001.5078, -1);
            
entradahotel CreatePickup(131823328.5529,-1513.7094,36.0391, -1);
            
saidahotel CreatePickup(131823346.7430,309.8346,999.1557, -1);
            
SetProgressBarValue(barfome100);
            
SetProgressBarValue(barsede100);
            
SetProgressBarValue(barsono100);
            
TextFome TextDrawCreate(500.000000109.000000"FOME:");
            
TextSede TextDrawCreate(500.000000129.000000"SEDE:");
            
TextSono TextDrawCreate(500.000000150.000000"SONO:");
            
Box TextDrawCreate(603.000000105.000000"_");
            
TextDrawUseBox(Box1);
            
TextDrawTextSize(Box,493.0000001.000000);
            
TextDrawLetterSize(Box,0.5000008.099987);
            
TextDrawBoxColor(Box,0x00000066);
            
TextDrawSetShadow(TextFome,0);
            
TextDrawSetShadow(TextSede,0);
            
TextDrawSetShadow(TextSono,0);
            
Objetos();
            
DisableInteriorEnterExits();
            for(new 
012i++) SetObjectMaterial(Cercas[i], 019341"egg_texts""easter_egg01"0xFFFFFFFF);
            return 
1;
    }
    public 
OnPlayerSpawn(playerid)
    {
        
SetTimerEx("Fome"20000true"i"playerid);
        
SetTimerEx("Sede"15000true"i"playerid);
        
ContagemSono[playerid] = SetTimerEx("Sono"35000true"i"playerid);
        return 
1;
    }
    public 
OnFilterScriptExit()
    {
        
DOF2_Exit();
            return 
false;
    }
    public 
OnPlayerPickUpPickup(playeridpickupid)
    {
            if(
pickupid == entrada)
            {
            
SetPlayerInterior(playerid10);
            
SetPlayerPos(playerid369.1026,-72.1459,1001.5078);
            
SendClientMessage(playerid, -1,"|Lanchonete| Use /cardapio para ver a lista de comidas.");
            
lanchonete[playerid] = true;
            
CorrigirVar[playerid] = SetTimerEx("Corrigir"1000true"i"playerid);
            }
            if(
pickupid == saida)
            {
            
SetPlayerInterior(playerid0);
            
SetPlayerPos(playerid1349.6332, -1551.575113.5469);
            
lanchonete[playerid] = false;
            
KillTimer(CorrigirVar[playerid]);
            }
            if(
pickupid == entradahotel)
            {
                    
ShowPlayerDialog(playeridHOTELDIALOG_STYLE_MSGBOX,"Hotel Rooms","Para usar o hotel vocк tem que alugar um quarto\nNo valor de 100R$.\nDeseja alugar?\n\n","Alugar","Cancelar");
            }
            if(
pickupid == saidahotel)
            {
            if(
GetPVarInt(playerid,"Sono") <= 60) return SendClientMessage(playerid,-1,"Vocк estб com sono e nгo pode sair do Hotel antes de durmir!");
            
SetPlayerPos(playerid335.1270,-1519.3262,35.8672);
            
SetPlayerInterior(playerid0);
            }
            return 
0;
    }
    public 
OnPlayerConnect(playerid)
    {
            static 
diimenor[80];
        
RemoveBuildingForPlayer(playerid41161345.6250, -1552.960948.51560.25);
            
RemoveBuildingForPlayer(playerid41131345.6250, -1552.960948.51560.25);
            
SetPlayerMapIcon(playerid01352.1377, -1552.838113.5469500MAPICON_GLOBAL);
            
SetPlayerMapIcon(playerid1,335.1270,-1519.3262,35.8672400MAPICON_GLOBAL);
            
lanchonete[playerid] = false;
            for(new 
iMAX_PLAYERS++)
            {
                    if(
IsPlayerConnected(i))
                    {
                            
ShowProgressBarForPlayer(ibarfome);
                            
ShowProgressBarForPlayer(ibarsede);
                            
ShowProgressBarForPlayer(ibarsono);
                            
TextDrawShowForPlayer(iTextFome);
                            
TextDrawShowForPlayer(iTextSede);
                            
TextDrawShowForPlayer(iTextSono);
                            
TextDrawShowForPlayer(iBox);
                    }
            }
            
format(arquivosizeof(arquivo), PASTA_CONTASPlayerName(playerid));
        if(
DOF2_FileExists(arquivo))
        {
            
SetPVarInt(playerid,"Fome"DOF2_GetInt(arquivo"Fome"));
            
SetPVarInt(playerid,"Sede"DOF2_GetInt(arquivo"Sede"));
            
SetPVarInt(playerid,"Sono"DOF2_GetInt(arquivo"Sono"));
            
SetProgressBarValue(barfomeDOF2_GetInt(arquivo"Fome"));
            
SetProgressBarValue(barsedeDOF2_GetInt(arquivo"Sede"));
            
SetProgressBarValue(barsonoDOF2_GetInt(arquivo"Sono"));
            
UpdateProgressBar(barfomeplayerid);
            
UpdateProgressBar(barsedeplayerid);
            
UpdateProgressBar(barsonoplayerid);
                    
format(diimenorsizeof(diimenor), "Carregando necessidades de %s"PlayerName(playerid));
            print(
diimenor);
        }
        else
        {
            
DOF2_CreateFile(arquivo);
            
DOF2_SetInt(arquivo"Fome"100);
            
DOF2_SetInt(arquivo"Sede"100);
            
DOF2_SetInt(arquivo"Sono"100);
            
SetPVarInt(playerid,"Fome"DOF2_GetInt(arquivo"Fome"));
            
SetPVarInt(playerid,"Sede"DOF2_GetInt(arquivo"Sede"));
            
SetPVarInt(playerid,"Sono"DOF2_GetInt(arquivo"Sono"));
            
SetProgressBarValue(barfomeDOF2_GetInt(arquivo"Fome"));
            
SetProgressBarValue(barsedeDOF2_GetInt(arquivo"Sede"));
            
SetProgressBarValue(barsonoDOF2_GetInt(arquivo"Sono"));
            
UpdateProgressBar(barfomeplayerid);
            
UpdateProgressBar(barsedeplayerid);
            
UpdateProgressBar(barsonoplayerid);
            
DOF2_SaveFile();
                    
format(diimenorsizeof(diimenor), "Criando arquivo de necessidades de %s"PlayerName(playerid));
            print(
diimenor);
        }
            return 
1;
    }
    
forward Fome(playerid);
    public 
Fome(playerid)
    {
        
SetPVarInt(playerid,"Fome"GetPVarInt(playerid,"Fome")-1);
        
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
        
UpdateProgressBar(barfome,playerid);
        if(
GetPVarInt(playerid,"Fome") <= 10)
        {
            
SendClientMessage(playerid,-1,"Vб atй a lanchonete comer ou irб morrer de fome!");
        }
        if(
GetPVarInt(playerid,"Fome") <= 0)
        {
                    
SetPlayerHealth(playerid0);
                    
SendClientMessage(playerid, -1"Vocк morreu de fome. Coma algo na lanchonete!");
                    
mFome[playerid] = true;
            }
        return 
1;
    }
    
forward Sono(playerid);
    public 
Sono(playerid)
    {
        
SetPVarInt(playerid,"Sono",GetPVarInt(playerid,"Sono")-1);
        
SetProgressBarValue(barsonoGetPVarInt(playerid,"Sono"));
        
UpdateProgressBar(barsono,playerid);
        if(
GetPVarInt(playerid,"Sono") <= 10)
        {
            
SendClientMessage(playerid,-1,"Vocк esta passando mal por excesso de sono, se nгo durmir podera desmaiar.");
            
SetPlayerDrunkLevel(playerid4000);
        }
        if(
GetPVarInt(playerid,"Sono") <= 0)
        {
            
SetPlayerDrunkLevel(playerid0);
            
ApplyAnimation(playerid,"CRACK""crckdeth2"4.011110);
            
fadeIn(playerid80000x000000FF);
            
KillTimer(ContagemSono[playerid]);
                    
SendClientMessage(playerid, -1,"Vocк desmaiou por excesso de sono...");
                    
SetTimerEx("AcordarDes"40000false"i"playerid);
                    
TogglePlayerControllable(playeridfalse);
        }
        return 
1;
    }
    
forward Sede(playerid);
    public 
Sede(playerid)
    {
        
SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")-1);
        
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
        
UpdateProgressBar(barsede,playerid);
        if(
GetPVarInt(playerid,"Sede") <= 10)
        {
            
SendClientMessage(playerid,-1,"Vocк estб com fome, coma algo na lanchonete ou ira morrer!");
        }
        if(
GetPVarInt(playerid,"Sede")<= 0)
        {
                    
SetPlayerHealth(playerid0);
                    
SendClientMessage(playerid, -1"Vocк morreu desnutrido. Beba algo na lanchonete!");
                    
mSede[playerid] = true;
            }
        return 
1;
    }
    
forward Acordar(playerid);
    public 
Acordar(playerid)
    {
            
TogglePlayerControllable(playeridtrue);
            
fadeOut(playerid100000x000000FF);
        
ClearAnimations(playerid);
        
ContagemSono[playerid] = SetTimerEx("Sono"35000true"i"playerid);
        
SetProgressBarValue(barsono100);
        
UpdateProgressBar(barsonoplayerid);
        
SetPVarInt(playerid,"Sono"100);
        return 
1;
    }
    
forward AcordarDes(playerid);
    public 
AcordarDes(playerid)
    {
        
TogglePlayerControllable(playeridtrue);
            
fadeOut(playerid100000x000000FF);
        
ClearAnimations(playerid);
        
ContagemSono[playerid] = SetTimerEx("Sono"35000true"i"playerid);
        
SetProgressBarValue(barsono30);
        
UpdateProgressBar(barsonoplayerid);
        
SetPVarInt(playerid,"Sono"30);
        
SendClientMessage(playerid, -1,"Vocк acordou, durma (/durmir) para nгo desmaiar novamente!");
        return 
1;
    }
    public 
OnPlayerDeath(playerid ,killeridreason)
    {
            if(
mFome[playerid] == true)
            {
                    
SetProgressBarValue(barfome30);
            
UpdateProgressBar(barfomeplayerid);
            
SetPVarInt(playerid,"Fome"30);
            
mSede[playerid] = false;
            }
            else if(
mSede[playerid] == true)
            {
            
SetProgressBarValue(barsede30);
            
SetPVarInt(playerid,"Sede"30);
            
UpdateProgressBar(barsedeplayerid);
            
mSede[playerid] = false;
            }
            return 
1;
    }
    
forward SalvarDiiMeNoR(playerid);
    public 
SalvarDiiMeNoR(playerid)
    {
        
format(arquivosizeof(arquivo), PASTA_CONTASPlayerName(playerid));
        if(
DOF2_FileExists(arquivo))
        {
            
DOF2_SetInt(arquivo"Fome"GetPVarInt(playerid,"Fome"));
            
DOF2_SetInt(arquivo"Sede"GetPVarInt(playerid,"Sede"));
            
DOF2_SetInt(arquivo"Sono"GetPVarInt(playerid,"Sono"));
            
DOF2_SaveFile();
        }
        return 
1;
    }
    public 
OnPlayerDisconnect(playeridreason)
    {
        
SalvarDiiMeNoR(playerid);
            return 
1;
    }
    public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
    {
            if(
dialogid == CARDAPIO)
            {
                if(!
response) { return 1; }
                    switch(
listitem)
            {
                case 
0://Pizza
                            
{
                                if(
GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$50 para comprar!");
                                if(
GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                
GivePlayerMoney(playerid, -50);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Pizza'");
                            
SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
                            
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
                            
UpdateProgressBar(barfome,playerid);
                            }
                            case 
1://Macarronada
                            
{
                                if(
GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$20 para comprar!");
                                if(
GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                
GivePlayerMoney(playerid, -20);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Macarronada'");
                            
SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+15);
                            
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
                            
UpdateProgressBar(barfome,playerid);
                            }
                            case 
2://Marmitex
                            
{
                                if(
GetPlayerMoney(playerid) < 12) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$12 para comprar!");
                                if(
GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                
GivePlayerMoney(playerid, -12);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Marmitйx'");
                            
SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
                            
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
                            
UpdateProgressBar(barfome,playerid);
                            }
                            case 
3://Salmгo Grelhado
                            
{
                                if(
GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$20 para comprar!");
                                if(
GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                
GivePlayerMoney(playerid, -20);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Salmгo Grelhado'");
                            
SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+30);
                            
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
                            
UpdateProgressBar(barfome,playerid);
                            }
                            case 
4://Bacalhau
                            
{
                                if(
GetPlayerMoney(playerid) < 21) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$21 para comprar!");
                                if(
GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                
GivePlayerMoney(playerid, -21);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Bacalhau'");
                            
SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+20);
                            
SetProgressBarValue(barfomeGetPVarInt(playerid,"Fome"));
                            
UpdateProgressBar(barfome,playerid);
                            }
                            case 
5://Agua
                            
{
                                if(
GetPlayerMoney(playerid) < 5) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$5 para comprar!");
                                if(
GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                
ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                
GivePlayerMoney(playerid, -5);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de beber 'Бgua'");
                            
SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+5);
                            
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
                            
UpdateProgressBar(barsede,playerid);
                            }
                            case 
6://Suco
                            
{
                                if(
GetPlayerMoney(playerid) < 12) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$12 para comprar!");
                                if(
GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                
ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                
GivePlayerMoney(playerid, -12);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de beber 'Suco'");
                            
SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+10);
                            
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
                            
UpdateProgressBar(barsedeplayerid);
                            }
                            case 
7://Refrigerante
                            
{
                                if(
GetPlayerMoney(playerid) < 17) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$17 para comprar!");
                                if(
GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                
ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                
GivePlayerMoney(playerid, -17);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de beber 'Refrigerante'");
                            
SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+15);
                            
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
                            
UpdateProgressBar(barsede,playerid);
                            }
                            case 
8://Energetico
                            
{
                                if(
GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$100 para comprar!");
                                if(
GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                
ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                
GivePlayerMoney(playerid,-100);
                                
SendClientMessage(playerid0xFFFFFF ,"[INFO] Vocк acabou de beber 'Energetico'");
                            
SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+40);
                            
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
                            
UpdateProgressBar(barsede,playerid);
                            }
                    }
            }
            if(
dialogid == HOTEL)
            {
            if(
response)
                    {
                        if(
GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1,"|HOTEL| Vocк nгo tem R$100 para alugar!");
                        if(
GetPVarInt(playerid,"Sono") >= 75) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta com sono!");
                            
SetPlayerPos(playerid345.4432,302.6292,999.9382);
                            
SetPlayerInterior(playerid6);
                            
SendClientMessage(playerid, -1"|Hotel| Para dumir use (/durmir), em cima da cama");
                            
GivePlayerMoney(playerid, -100);
            }
            else
                    {
                            
SendClientMessage(playerid, -1"Vocк optou por nгo alugar, pode durmir em sua casa.");
            }
            }
            return 
0;
    }
    
forward Corrigir(playerid);
    public 
Corrigir(playerid)
    {
            if(
GetPVarInt(playerid,"Sede") > 100)
            {
                    
SetPVarInt(playerid,"Sede"100);
                    
SetProgressBarValue(barsedeGetPVarInt(playerid,"Sede"));
                    
UpdateProgressBar(barsede,playerid);
            }
            if(
GetPVarInt(playerid,"Fome") > 100)
            {
                    
SetPVarInt(playerid,"Fome"100);
                    
SetProgressBarValue(barsedeGetPVarInt(playerid,"Fome"));
                    
UpdateProgressBar(barsedeplayerid);
            }
            return 
false;
    }
    
CMD:cardapio(playerid)
    {
            if(
lanchonete[playerid] == true)
            {
            
ShowPlayerDialog(playeridCARDAPIO ,DIALOG_STYLE_LIST,"Cardбpio Lanchonete","- Pizza\t{00EE76}R$150\n- Macarronada\t{00EE76}R$200\n- Marmitex\t{00EE76}R$120\n- Salmгo Grelhado\t{00EE76}R$200\n- Bacalhau\t{00EE76}R$210\n- Бgua\t{00EE76}R$5\n- Suco\t{00EE76}R$12\n- Refrigerante\t{00EE76}R$17\n- Energetico\t{00EE76}R$100\n\n","Aceitar","Cancelar");
            }
            else
            {
                    
SendClientMessage(playerid, -1,"[ERRO]Vocк nгo esta na lanchonete!");
            }
        return 
1;
    }
    
CMD:durmir(playerid)
    {
            if(!
IsPlayerInRangeOfPoint(playerid2.0345.4432,302.6292,999.9382)) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta em cima da cama!");
        if(
GetPVarInt(playerid,"Sono") >= 75) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta com sono!");
        
TogglePlayerControllable(playeridfalse);
            
SetPlayerDrunkLevel(playerid0);
            
ApplyAnimation(playerid,"CRACK""crckdeth2"4.011110);
            
KillTimer(ContagemSono[playerid]);
            
FadeIn(playerid80000x000000FF);
            
SetTimerEx("Acordar"40000false"i"playerid);
            return 
1;
    }
    
stock Objetos()
    {
        
CreateObject(167811355.200000, -1553.70000012.4000000.0000000.000000254.000000);
        
Cercas[0] = CreateObject(14081358.100000, -1570.60000013.1000000.0000000.000000345.000000);
        
Cercas[1] = CreateObject(14081353.100000, -1569.20000013.1000000.0000000.000000344.998000);
        
Cercas[2] = CreateObject(14081348.100000, -1567.80000013.1000000.0000000.000000344.998000);
        
Cercas[3] = CreateObject(14081343.100000, -1566.40000013.1000000.0000000.000000344.998000);
        
Cercas[4] = CreateObject(14081330.300000, -1563.00000013.1000000.0000000.000000346.998000);
        
Cercas[5] = CreateObject(14081325.200000, -1562.30000013.1000000.0000000.000000356.998000);
        
Cercas[6] = CreateObject(14081327.900000, -1537.00000013.1000000.0000000.000000248.000000);
        
Cercas[7] = CreateObject(14081326.100000, -1541.90000013.1000000.0000000.000000252.000000);
        
Cercas[8] = CreateObject(14081324.900000, -1546.90000013.1000000.0000000.000000262.000000);
        
Cercas[9] = CreateObject(14081324.100000, -1552.00000013.1000000.0000000.000000260.000000);
        
Cercas[10] = CreateObject(14081323.300000, -1557.10000013.1000000.0000000.000000262.000000);
        
Cercas[11] = CreateObject(14081323.000000, -1559.50000013.1000000.0000000.000000262.000000);
        
CreateObject(41001336.100000, -1535.00000014.2000000.0000000.000000316.000000);
        
CreateObject(41001349.700000, -1536.20000014.2000000.0000000.000000314.000000);
        
CreateObject(41001363.100000, -1538.90000014.2000000.0000000.000000304.000000);
        
CreateObject(15941325.900000, -1559.80000013.0000000.0000000.0000000.000000);
        
CreateObject(15941330.900000, -1560.00000013.0000000.0000000.0000000.000000);
        
CreateObject(15941346.100000, -1544.60000013.0000000.0000000.0000000.000000);
        
CreateObject(146571334.600000, -1543.40000013.1000000.0000000.00000084.000000);
        
CreateObject(12811334.700000, -1544.00000013.3000000.0000000.0000000.000000);
        
CreateObject(15821334.100000, -1549.50000013.4000000.0000000.0000000.000000);
        
CreateObject(24201341.100000, -1565.90000012.8000000.0000000.000000344.000000);
        
CreateObject(9551350.600000, -1555.70000012.5000000.0000000.000000256.000000);
    }
    
stock PlayerName(playerid)
    {
            static 
name[MAX_PLAYER_NAME];
            
GetPlayerName(playerid,name,sizeof(name));
            return 
name;
    } 
Eu recomendo vocк fazer o seu proprio sendo assim seria unico mais ja que vocк quer esse mesmo ..

Poblema resolvido Baixa as Include


pawn Код:
#include        progress
#include        fader
Reply
#3

Isto й erro de include.
Reply
#4

Quote:
Originally Posted by Jimmmy
Посмотреть сообщение
Eu recomendo vocк fazer o seu proprio sendo assim seria unico mais ja que vocк quer esse mesmo ..

Poblema resolvido Baixa as Include


pawn Код:
#include        progress
#include        fader
Amigo ja baixei as includes mas continua o erro
Reply
#5

As includes atualizadas, bnvowna?
Reply
#6

Quote:
Originally Posted by xCR7
Посмотреть сообщение
As includes atualizadas, bnvowna?
Siim
Reply
#7

Amigo To Com MSM FS e teve os msm erros mais resolvi
pawn Код:
#include        a_samp
    #include        progress
    #include        zcmd
    #include        fader
    #include    DOF2

    #define         CARDAPIO                1978
    #define     HOTEL           1979
    #define         PASTA_CONTAS    "/DiiMeNoR/%s.ini"

     // Necessбrio criar a pasta 'DiiMeNoR' em suas scriptfiles ou o sistema nгo ira funcionar.

    new Bar:barfome, Bar:barsede, Bar:barsono;
    new Text:TextFome, Text:TextSede, Text:TextSono, Text:Box;
    new ContagemSono[MAX_PLAYERS];
    new CorrigirVar[MAX_PLAYERS];
    new Cercas[12];
    new entrada, saida, entradahotel, saidahotel;
    new bool:lanchonete[MAX_PLAYERS];
    new arquivo[30];
    new bool:mFome[MAX_PLAYERS], bool:mSede[MAX_PLAYERS];

    public OnFilterScriptInit()
    {
            barfome = CreateProgressBar(505.00, 123.00, 84.50, 3.20, 0xFF283DAA, 100.0);
            barsede = CreateProgressBar(505.00, 143.00, 84.50, 3.20, 0x384BFFAA, 100.0);
            barsono = CreateProgressBar(505.00, 164.00, 84.50, 3.20, 0xF3FF10AA, 100.0);
            entrada = CreatePickup(1318, 23, 1352.1377,-1552.8381,13.5469, -1);
            saida = CreatePickup(1318, 23, 363.2614, -74.8193, 1001.5078, -1);
            entradahotel = CreatePickup(1318, 23, 328.5529,-1513.7094,36.0391, -1);
            saidahotel = CreatePickup(1318, 23, 346.7430,309.8346,999.1557, -1);
            SetProgressBarValue(barfome, 100);
            SetProgressBarValue(barsede, 100);
            SetProgressBarValue(barsono, 100);
            TextFome = TextDrawCreate(500.000000, 109.000000, "FOME:");
            TextSede = TextDrawCreate(500.000000, 129.000000, "SEDE:");
            TextSono = TextDrawCreate(500.000000, 150.000000, "SONO:");
            Box = TextDrawCreate(603.000000, 105.000000, "_");
            TextDrawUseBox(Box, 1);
            TextDrawTextSize(Box,493.000000, 1.000000);
            TextDrawLetterSize(Box,0.500000, 8.099987);
            TextDrawBoxColor(Box,0x00000066);
            TextDrawSetShadow(TextFome,0);
            TextDrawSetShadow(TextSede,0);
            TextDrawSetShadow(TextSono,0);
            Objetos();
            DisableInteriorEnterExits();
            for(new i = 0; i < 12; i++) SetObjectMaterial(Cercas[i], 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);
            return 1;
    }
    public OnPlayerSpawn(playerid)
    {
        SetTimerEx("Fome", 20000, true, "i", playerid);
        SetTimerEx("Sede", 15000, true, "i", playerid);
        ContagemSono[playerid] = SetTimerEx("Sono", 35000, true, "i", playerid);
        return 1;
    }
    public OnFilterScriptExit()
    {
        DOF2_Exit();
        return false;
    }
    public OnPlayerPickUpPickup(playerid, pickupid)
    {
            if(pickupid == entrada)
            {
            SetPlayerInterior(playerid, 10);
            SetPlayerPos(playerid, 369.1026,-72.1459,1001.5078);
            SendClientMessage(playerid, -1,"|Lanchonete| Use /cardapio para ver a lista de comidas.");
            lanchonete[playerid] = true;
            CorrigirVar[playerid] = SetTimerEx("Corrigir", 1000, true, "i", playerid);
            }
            if(pickupid == saida)
            {
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 1349.6332, -1551.5751, 13.5469);
            lanchonete[playerid] = false;
            KillTimer(CorrigirVar[playerid]);
            }
            if(pickupid == entradahotel)
            {
                    ShowPlayerDialog(playerid, HOTEL, DIALOG_STYLE_MSGBOX,"Hotel Rooms","Para usar o hotel vocк tem que alugar um quarto\nNo valor de 100R$.\nDeseja alugar?\n\n","Alugar","Cancelar");
            }
            if(pickupid == saidahotel)
            {
            if(GetPVarInt(playerid,"Sono") <= 60) return SendClientMessage(playerid,-1,"Vocк estб com sono e nгo pode sair do Hotel antes de durmir!");
            SetPlayerPos(playerid, 335.1270,-1519.3262,35.8672);
            SetPlayerInterior(playerid, 0);
            }
            return 0;
    }
    public OnPlayerConnect(playerid)
    {
            static diimenor[80];
            RemoveBuildingForPlayer(playerid, 4116, 1345.6250, -1552.9609, 48.5156, 0.25);
            RemoveBuildingForPlayer(playerid, 4113, 1345.6250, -1552.9609, 48.5156, 0.25);
            SetPlayerMapIcon(playerid, 0, 1352.1377, -1552.8381, 13.5469, 50, 0, MAPICON_GLOBAL);
            SetPlayerMapIcon(playerid, 1,335.1270,-1519.3262,35.8672, 40, 0, MAPICON_GLOBAL);
            lanchonete[playerid] = false;
            for(new i; i < MAX_PLAYERS; i ++)
            {
                    if(IsPlayerConnected(i))
                    {
                            ShowProgressBarForPlayer(i, barfome);
                            ShowProgressBarForPlayer(i, barsede);
                            ShowProgressBarForPlayer(i, barsono);
                            TextDrawShowForPlayer(i, TextFome);
                            TextDrawShowForPlayer(i, TextSede);
                            TextDrawShowForPlayer(i, TextSono);
                            TextDrawShowForPlayer(i, Box);
                    }
            }
            format(arquivo, sizeof(arquivo), PASTA_CONTAS, PlayerName(playerid));
            if(DOF2_FileExists(arquivo))
        {
            SetPVarInt(playerid,"Fome", DOF2_GetInt(arquivo, "Fome"));
            SetPVarInt(playerid,"Sede", DOF2_GetInt(arquivo, "Sede"));
            SetPVarInt(playerid,"Sono", DOF2_GetInt(arquivo, "Sono"));
            SetProgressBarValue(barfome, DOF2_GetInt(arquivo, "Fome"));
            SetProgressBarValue(barsede, DOF2_GetInt(arquivo, "Sede"));
            SetProgressBarValue(barsono, DOF2_GetInt(arquivo, "Sono"));
            UpdateProgressBar(barfome, playerid);
            UpdateProgressBar(barsede, playerid);
            UpdateProgressBar(barsono, playerid);
            format(diimenor, sizeof(diimenor), "Carregando necessidades de %s", PlayerName(playerid));
            print(diimenor);
        }
            else
        {
            DOF2_CreateFile(arquivo);
            DOF2_SetInt(arquivo, "Fome", 100);
            DOF2_SetInt(arquivo, "Sede", 100);
            DOF2_SetInt(arquivo, "Sono", 100);
            SetPVarInt(playerid,"Fome", DOF2_GetInt(arquivo, "Fome"));
            SetPVarInt(playerid,"Sede", DOF2_GetInt(arquivo, "Sede"));
            SetPVarInt(playerid,"Sono", DOF2_GetInt(arquivo, "Sono"));
            SetProgressBarValue(barfome, DOF2_GetInt(arquivo, "Fome"));
            SetProgressBarValue(barsede, DOF2_GetInt(arquivo, "Sede"));
            SetProgressBarValue(barsono, DOF2_GetInt(arquivo, "Sono"));
            UpdateProgressBar(barfome, playerid);
            UpdateProgressBar(barsede, playerid);
            UpdateProgressBar(barsono, playerid);
            DOF2_SaveFile();
            format(diimenor, sizeof(diimenor), "Criando arquivo de necessidades de %s", PlayerName(playerid));
            print(diimenor);
        }
            return 1;
    }
    forward Fome(playerid);
    public Fome(playerid)
    {
        SetPVarInt(playerid,"Fome", GetPVarInt(playerid,"Fome")-1);
        SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
        UpdateProgressBar(barfome,playerid);
        if(GetPVarInt(playerid,"Fome") <= 10)
        {
            SendClientMessage(playerid,-1,"Vб atй a lanchonete comer ou irб morrer de fome!");
        }
        if(GetPVarInt(playerid,"Fome") <= 0)
        {
                    SetPlayerHealth(playerid, 0);
                    SendClientMessage(playerid, -1, "Vocк morreu de fome. Coma algo na lanchonete!");
                    mFome[playerid] = true;
            }
        return 1;
    }
    forward Sono(playerid);
    public Sono(playerid)
    {
        SetPVarInt(playerid,"Sono",GetPVarInt(playerid,"Sono")-1);
        SetProgressBarValue(barsono, GetPVarInt(playerid,"Sono"));
        UpdateProgressBar(barsono,playerid);
        if(GetPVarInt(playerid,"Sono") <= 10)
        {
            SendClientMessage(playerid,-1,"Vocк esta passando mal por excesso de sono, se nгo durmir podera desmaiar.");
            SetPlayerDrunkLevel(playerid, 4000);
        }
        if(GetPVarInt(playerid,"Sono") <= 0)
        {
            SetPlayerDrunkLevel(playerid, 0);
            ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 1, 0);
            KillTimer(ContagemSono[playerid]);
            SendClientMessage(playerid, -1,"Vocк desmaiou por excesso de sono...");
            SetTimerEx("AcordarDes", 40000, false, "i", playerid);
            TogglePlayerControllable(playerid, false);
        }
        return 1;
    }
    forward Sede(playerid);
    public Sede(playerid)
    {
        SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")-1);
        SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
        UpdateProgressBar(barsede,playerid);
        if(GetPVarInt(playerid,"Sede") <= 10)
        {
            SendClientMessage(playerid,-1,"Vocк estб com fome, coma algo na lanchonete ou ira morrer!");
        }
        if(GetPVarInt(playerid,"Sede")<= 0)
        {
                    SetPlayerHealth(playerid, 0);
                    SendClientMessage(playerid, -1, "Vocк morreu desnutrido. Beba algo na lanchonete!");
                    mSede[playerid] = true;
            }
        return 1;
    }
    forward Acordar(playerid);
    public Acordar(playerid)
    {
        TogglePlayerControllable(playerid, true);
        ClearAnimations(playerid);
        ContagemSono[playerid] = SetTimerEx("Sono", 35000, true, "i", playerid);
        SetProgressBarValue(barsono, 100);
        UpdateProgressBar(barsono, playerid);
        SetPVarInt(playerid,"Sono", 100);
        return 1;
    }
    forward AcordarDes(playerid);
    public AcordarDes(playerid)
    {
        TogglePlayerControllable(playerid, true);
        ClearAnimations(playerid);
        ContagemSono[playerid] = SetTimerEx("Sono", 35000, true, "i", playerid);
        SetProgressBarValue(barsono, 30);
        UpdateProgressBar(barsono, playerid);
        SetPVarInt(playerid,"Sono", 30);
        SendClientMessage(playerid, -1,"Vocк acordou, durma (/durmir) para nгo desmaiar novamente!");
        return 1;
    }
    public OnPlayerDeath(playerid ,killerid, reason)
    {
            if(mFome[playerid] == true)
            {
                    SetProgressBarValue(barfome, 30);
                    UpdateProgressBar(barfome, playerid);
                    SetPVarInt(playerid,"Fome", 30);
                    mSede[playerid] = false;
            }
            else if(mSede[playerid] == true)
            {
            SetProgressBarValue(barsede, 30);
            SetPVarInt(playerid,"Sede", 30);
            UpdateProgressBar(barsede, playerid);
            mSede[playerid] = false;
            }
            return 1;
    }
    forward SalvarDiiMeNoR(playerid);
    public SalvarDiiMeNoR(playerid)
    {
        format(arquivo, sizeof(arquivo), PASTA_CONTAS, PlayerName(playerid));
        if(DOF2_FileExists(arquivo))
        {
            DOF2_SetInt(arquivo, "Fome", GetPVarInt(playerid,"Fome"));
            DOF2_SetInt(arquivo, "Sede", GetPVarInt(playerid,"Sede"));
            DOF2_SetInt(arquivo, "Sono", GetPVarInt(playerid,"Sono"));
            DOF2_SaveFile();
        }
        return 1;
    }
    public OnPlayerDisconnect(playerid, reason)
    {
        SalvarDiiMeNoR(playerid);
        return 1;
    }
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
            if(dialogid == CARDAPIO)
            {
                if(!response) { return 1; }
                switch(listitem)
            {
                case 0://Pizza
                            {
                                if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$50 para comprar!");
                                if(GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                GivePlayerMoney(playerid, -50);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Pizza'");
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
                                SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(barfome,playerid);
                            }
                            case 1://Macarronada
                            {
                                if(GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$20 para comprar!");
                                if(GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                GivePlayerMoney(playerid, -20);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Macarronada'");
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+15);
                                SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(barfome,playerid);
                            }
                            case 2://Marmitex
                            {
                                if(GetPlayerMoney(playerid) < 12) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$12 para comprar!");
                                if(GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                GivePlayerMoney(playerid, -12);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Marmitйx'");
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
                                SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(barfome,playerid);
                            }
                            case 3://Salmгo Grelhado
                            {
                                if(GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$20 para comprar!");
                                if(GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                GivePlayerMoney(playerid, -20);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Salmгo Grelhado'");
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+30);
                                SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(barfome,playerid);
                            }
                            case 4://Bacalhau
                            {
                                if(GetPlayerMoney(playerid) < 21) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$21 para comprar!");
                                if(GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                GivePlayerMoney(playerid, -21);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Bacalhau'");
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+20);
                                SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(barfome,playerid);
                            }
                            case 5://Agua
                            {
                                if(GetPlayerMoney(playerid) < 5) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$5 para comprar!");
                                if(GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                GivePlayerMoney(playerid, -5);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de beber 'Бgua'");
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+5);
                                SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(barsede,playerid);
                            }
                            case 6://Suco
                            {
                                if(GetPlayerMoney(playerid) < 12) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$12 para comprar!");
                                if(GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                GivePlayerMoney(playerid, -12);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de beber 'Suco'");
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+10);
                                SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(barsede, playerid);
                            }
                            case 7://Refrigerante
                            {
                                if(GetPlayerMoney(playerid) < 17) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$17 para comprar!");
                                if(GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                GivePlayerMoney(playerid, -17);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de beber 'Refrigerante'");
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+15);
                                SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(barsede,playerid);
                            }
                            case 8://Energetico
                            {
                                if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$100 para comprar!");
                                if(GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                GivePlayerMoney(playerid,-100);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de beber 'Energetico'");
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+40);
                                SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(barsede,playerid);
                            }
                    }
            }
            if(dialogid == HOTEL)
            {
            if(response)
                    {
                            if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1,"|HOTEL| Vocк nгo tem R$100 para alugar!");
                            if(GetPVarInt(playerid,"Sono") >= 75) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta com sono!");
                            SetPlayerPos(playerid, 345.4432,302.6292,999.9382);
                            SetPlayerInterior(playerid, 6);
                            SendClientMessage(playerid, -1, "|Hotel| Para dumir use (/durmir), em cima da cama");
                            GivePlayerMoney(playerid, -100);

            }
            else
                    {
                            SendClientMessage(playerid, -1, "Vocк optou por nгo alugar, pode durmir em sua casa.");
            }
            }
            return 0;
    }
    forward Corrigir(playerid);
    public Corrigir(playerid)
    {
            if(GetPVarInt(playerid,"Sede") > 100)
            {
                    SetPVarInt(playerid,"Sede", 100);
                    SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
                    UpdateProgressBar(barsede,playerid);
            }
            if(GetPVarInt(playerid,"Fome") > 100)
            {
                    SetPVarInt(playerid,"Fome", 100);
                    SetProgressBarValue(barsede, GetPVarInt(playerid,"Fome"));
                    UpdateProgressBar(barsede, playerid);
            }
            return false;
    }
    CMD:cardapio(playerid)
    {
            if(lanchonete[playerid] == true)
            {
            ShowPlayerDialog(playerid, CARDAPIO ,DIALOG_STYLE_LIST,"Cardбpio Lanchonete","- Pizza\t{00EE76}R$150\n- Macarronada\t{00EE76}R$200\n- Marmitex\t{00EE76}R$120\n- Salmгo Grelhado\t{00EE76}R$200\n- Bacalhau\t{00EE76}R$210\n- Бgua\t{00EE76}R$5\n- Suco\t{00EE76}R$12\n- Refrigerante\t{00EE76}R$17\n- Energetico\t{00EE76}R$100\n\n","Aceitar","Cancelar");
            }
            else
            {
                    SendClientMessage(playerid, -1,"[ERRO]Vocк nгo esta na lanchonete!");
            }
            return 1;
    }
    CMD:durmir(playerid)
    {
            if(!IsPlayerInRangeOfPoint(playerid, 2.0, 345.4432,302.6292,999.9382)) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta em cima da cama!");
            if(GetPVarInt(playerid,"Sono") >= 75) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta com sono!");
            TogglePlayerControllable(playerid, false);
            SetPlayerDrunkLevel(playerid, 0);
            ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 1, 0);
            KillTimer(ContagemSono[playerid]);
            SetTimerEx("Acordar", 40000, false, "i", playerid);
            return 1;
    }
    stock Objetos()
    {
        CreateObject(16781, 1355.200000, -1553.700000, 12.400000, 0.000000, 0.000000, 254.000000);
        Cercas[0] = CreateObject(1408, 1358.100000, -1570.600000, 13.100000, 0.000000, 0.000000, 345.000000);
        Cercas[1] = CreateObject(1408, 1353.100000, -1569.200000, 13.100000, 0.000000, 0.000000, 344.998000);
        Cercas[2] = CreateObject(1408, 1348.100000, -1567.800000, 13.100000, 0.000000, 0.000000, 344.998000);
        Cercas[3] = CreateObject(1408, 1343.100000, -1566.400000, 13.100000, 0.000000, 0.000000, 344.998000);
        Cercas[4] = CreateObject(1408, 1330.300000, -1563.000000, 13.100000, 0.000000, 0.000000, 346.998000);
        Cercas[5] = CreateObject(1408, 1325.200000, -1562.300000, 13.100000, 0.000000, 0.000000, 356.998000);
        Cercas[6] = CreateObject(1408, 1327.900000, -1537.000000, 13.100000, 0.000000, 0.000000, 248.000000);
        Cercas[7] = CreateObject(1408, 1326.100000, -1541.900000, 13.100000, 0.000000, 0.000000, 252.000000);
        Cercas[8] = CreateObject(1408, 1324.900000, -1546.900000, 13.100000, 0.000000, 0.000000, 262.000000);
        Cercas[9] = CreateObject(1408, 1324.100000, -1552.000000, 13.100000, 0.000000, 0.000000, 260.000000);
        Cercas[10] = CreateObject(1408, 1323.300000, -1557.100000, 13.100000, 0.000000, 0.000000, 262.000000);
        Cercas[11] = CreateObject(1408, 1323.000000, -1559.500000, 13.100000, 0.000000, 0.000000, 262.000000);
        CreateObject(4100, 1336.100000, -1535.000000, 14.200000, 0.000000, 0.000000, 316.000000);
        CreateObject(4100, 1349.700000, -1536.200000, 14.200000, 0.000000, 0.000000, 314.000000);
        CreateObject(4100, 1363.100000, -1538.900000, 14.200000, 0.000000, 0.000000, 304.000000);
        CreateObject(1594, 1325.900000, -1559.800000, 13.000000, 0.000000, 0.000000, 0.000000);
        CreateObject(1594, 1330.900000, -1560.000000, 13.000000, 0.000000, 0.000000, 0.000000);
        CreateObject(1594, 1346.100000, -1544.600000, 13.000000, 0.000000, 0.000000, 0.000000);
        CreateObject(14657, 1334.600000, -1543.400000, 13.100000, 0.000000, 0.000000, 84.000000);
        CreateObject(1281, 1334.700000, -1544.000000, 13.300000, 0.000000, 0.000000, 0.000000);
        CreateObject(1582, 1334.100000, -1549.500000, 13.400000, 0.000000, 0.000000, 0.000000);
        CreateObject(2420, 1341.100000, -1565.900000, 12.800000, 0.000000, 0.000000, 344.000000);
        CreateObject(955, 1350.600000, -1555.700000, 12.500000, 0.000000, 0.000000, 256.000000);
    }
    stock PlayerName(playerid)
    {
            static name[MAX_PLAYER_NAME];
            GetPlayerName(playerid,name,sizeof(name));
            return name;
    }
espero ter ajudado
Reply
#8

Quote:
Originally Posted by Italoigt
Посмотреть сообщение
Amigo To Com MSM FS e teve os msm erros mais resolvi
pawn Код:
#include        a_samp
    #include        progress
    #include        zcmd
    #include        fader
    #include    DOF2

    #define         CARDAPIO                1978
    #define     HOTEL           1979
    #define         PASTA_CONTAS    "/DiiMeNoR/%s.ini"

     // Necessбrio criar a pasta 'DiiMeNoR' em suas scriptfiles ou o sistema nгo ira funcionar.

    new Bar:barfome, Bar:barsede, Bar:barsono;
    new Text:TextFome, Text:TextSede, Text:TextSono, Text:Box;
    new ContagemSono[MAX_PLAYERS];
    new CorrigirVar[MAX_PLAYERS];
    new Cercas[12];
    new entrada, saida, entradahotel, saidahotel;
    new bool:lanchonete[MAX_PLAYERS];
    new arquivo[30];
    new bool:mFome[MAX_PLAYERS], bool:mSede[MAX_PLAYERS];

    public OnFilterScriptInit()
    {
            barfome = CreateProgressBar(505.00, 123.00, 84.50, 3.20, 0xFF283DAA, 100.0);
            barsede = CreateProgressBar(505.00, 143.00, 84.50, 3.20, 0x384BFFAA, 100.0);
            barsono = CreateProgressBar(505.00, 164.00, 84.50, 3.20, 0xF3FF10AA, 100.0);
            entrada = CreatePickup(1318, 23, 1352.1377,-1552.8381,13.5469, -1);
            saida = CreatePickup(1318, 23, 363.2614, -74.8193, 1001.5078, -1);
            entradahotel = CreatePickup(1318, 23, 328.5529,-1513.7094,36.0391, -1);
            saidahotel = CreatePickup(1318, 23, 346.7430,309.8346,999.1557, -1);
            SetProgressBarValue(barfome, 100);
            SetProgressBarValue(barsede, 100);
            SetProgressBarValue(barsono, 100);
            TextFome = TextDrawCreate(500.000000, 109.000000, "FOME:");
            TextSede = TextDrawCreate(500.000000, 129.000000, "SEDE:");
            TextSono = TextDrawCreate(500.000000, 150.000000, "SONO:");
            Box = TextDrawCreate(603.000000, 105.000000, "_");
            TextDrawUseBox(Box, 1);
            TextDrawTextSize(Box,493.000000, 1.000000);
            TextDrawLetterSize(Box,0.500000, 8.099987);
            TextDrawBoxColor(Box,0x00000066);
            TextDrawSetShadow(TextFome,0);
            TextDrawSetShadow(TextSede,0);
            TextDrawSetShadow(TextSono,0);
            Objetos();
            DisableInteriorEnterExits();
            for(new i = 0; i < 12; i++) SetObjectMaterial(Cercas[i], 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);
            return 1;
    }
    public OnPlayerSpawn(playerid)
    {
        SetTimerEx("Fome", 20000, true, "i", playerid);
        SetTimerEx("Sede", 15000, true, "i", playerid);
        ContagemSono[playerid] = SetTimerEx("Sono", 35000, true, "i", playerid);
        return 1;
    }
    public OnFilterScriptExit()
    {
        DOF2_Exit();
        return false;
    }
    public OnPlayerPickUpPickup(playerid, pickupid)
    {
            if(pickupid == entrada)
            {
            SetPlayerInterior(playerid, 10);
            SetPlayerPos(playerid, 369.1026,-72.1459,1001.5078);
            SendClientMessage(playerid, -1,"|Lanchonete| Use /cardapio para ver a lista de comidas.");
            lanchonete[playerid] = true;
            CorrigirVar[playerid] = SetTimerEx("Corrigir", 1000, true, "i", playerid);
            }
            if(pickupid == saida)
            {
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 1349.6332, -1551.5751, 13.5469);
            lanchonete[playerid] = false;
            KillTimer(CorrigirVar[playerid]);
            }
            if(pickupid == entradahotel)
            {
                    ShowPlayerDialog(playerid, HOTEL, DIALOG_STYLE_MSGBOX,"Hotel Rooms","Para usar o hotel vocк tem que alugar um quarto\nNo valor de 100R$.\nDeseja alugar?\n\n","Alugar","Cancelar");
            }
            if(pickupid == saidahotel)
            {
            if(GetPVarInt(playerid,"Sono") <= 60) return SendClientMessage(playerid,-1,"Vocк estб com sono e nгo pode sair do Hotel antes de durmir!");
            SetPlayerPos(playerid, 335.1270,-1519.3262,35.8672);
            SetPlayerInterior(playerid, 0);
            }
            return 0;
    }
    public OnPlayerConnect(playerid)
    {
            static diimenor[80];
            RemoveBuildingForPlayer(playerid, 4116, 1345.6250, -1552.9609, 48.5156, 0.25);
            RemoveBuildingForPlayer(playerid, 4113, 1345.6250, -1552.9609, 48.5156, 0.25);
            SetPlayerMapIcon(playerid, 0, 1352.1377, -1552.8381, 13.5469, 50, 0, MAPICON_GLOBAL);
            SetPlayerMapIcon(playerid, 1,335.1270,-1519.3262,35.8672, 40, 0, MAPICON_GLOBAL);
            lanchonete[playerid] = false;
            for(new i; i < MAX_PLAYERS; i ++)
            {
                    if(IsPlayerConnected(i))
                    {
                            ShowProgressBarForPlayer(i, barfome);
                            ShowProgressBarForPlayer(i, barsede);
                            ShowProgressBarForPlayer(i, barsono);
                            TextDrawShowForPlayer(i, TextFome);
                            TextDrawShowForPlayer(i, TextSede);
                            TextDrawShowForPlayer(i, TextSono);
                            TextDrawShowForPlayer(i, Box);
                    }
            }
            format(arquivo, sizeof(arquivo), PASTA_CONTAS, PlayerName(playerid));
            if(DOF2_FileExists(arquivo))
        {
            SetPVarInt(playerid,"Fome", DOF2_GetInt(arquivo, "Fome"));
            SetPVarInt(playerid,"Sede", DOF2_GetInt(arquivo, "Sede"));
            SetPVarInt(playerid,"Sono", DOF2_GetInt(arquivo, "Sono"));
            SetProgressBarValue(barfome, DOF2_GetInt(arquivo, "Fome"));
            SetProgressBarValue(barsede, DOF2_GetInt(arquivo, "Sede"));
            SetProgressBarValue(barsono, DOF2_GetInt(arquivo, "Sono"));
            UpdateProgressBar(barfome, playerid);
            UpdateProgressBar(barsede, playerid);
            UpdateProgressBar(barsono, playerid);
            format(diimenor, sizeof(diimenor), "Carregando necessidades de %s", PlayerName(playerid));
            print(diimenor);
        }
            else
        {
            DOF2_CreateFile(arquivo);
            DOF2_SetInt(arquivo, "Fome", 100);
            DOF2_SetInt(arquivo, "Sede", 100);
            DOF2_SetInt(arquivo, "Sono", 100);
            SetPVarInt(playerid,"Fome", DOF2_GetInt(arquivo, "Fome"));
            SetPVarInt(playerid,"Sede", DOF2_GetInt(arquivo, "Sede"));
            SetPVarInt(playerid,"Sono", DOF2_GetInt(arquivo, "Sono"));
            SetProgressBarValue(barfome, DOF2_GetInt(arquivo, "Fome"));
            SetProgressBarValue(barsede, DOF2_GetInt(arquivo, "Sede"));
            SetProgressBarValue(barsono, DOF2_GetInt(arquivo, "Sono"));
            UpdateProgressBar(barfome, playerid);
            UpdateProgressBar(barsede, playerid);
            UpdateProgressBar(barsono, playerid);
            DOF2_SaveFile();
            format(diimenor, sizeof(diimenor), "Criando arquivo de necessidades de %s", PlayerName(playerid));
            print(diimenor);
        }
            return 1;
    }
    forward Fome(playerid);
    public Fome(playerid)
    {
        SetPVarInt(playerid,"Fome", GetPVarInt(playerid,"Fome")-1);
        SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
        UpdateProgressBar(barfome,playerid);
        if(GetPVarInt(playerid,"Fome") <= 10)
        {
            SendClientMessage(playerid,-1,"Vб atй a lanchonete comer ou irб morrer de fome!");
        }
        if(GetPVarInt(playerid,"Fome") <= 0)
        {
                    SetPlayerHealth(playerid, 0);
                    SendClientMessage(playerid, -1, "Vocк morreu de fome. Coma algo na lanchonete!");
                    mFome[playerid] = true;
            }
        return 1;
    }
    forward Sono(playerid);
    public Sono(playerid)
    {
        SetPVarInt(playerid,"Sono",GetPVarInt(playerid,"Sono")-1);
        SetProgressBarValue(barsono, GetPVarInt(playerid,"Sono"));
        UpdateProgressBar(barsono,playerid);
        if(GetPVarInt(playerid,"Sono") <= 10)
        {
            SendClientMessage(playerid,-1,"Vocк esta passando mal por excesso de sono, se nгo durmir podera desmaiar.");
            SetPlayerDrunkLevel(playerid, 4000);
        }
        if(GetPVarInt(playerid,"Sono") <= 0)
        {
            SetPlayerDrunkLevel(playerid, 0);
            ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 1, 0);
            KillTimer(ContagemSono[playerid]);
            SendClientMessage(playerid, -1,"Vocк desmaiou por excesso de sono...");
            SetTimerEx("AcordarDes", 40000, false, "i", playerid);
            TogglePlayerControllable(playerid, false);
        }
        return 1;
    }
    forward Sede(playerid);
    public Sede(playerid)
    {
        SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")-1);
        SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
        UpdateProgressBar(barsede,playerid);
        if(GetPVarInt(playerid,"Sede") <= 10)
        {
            SendClientMessage(playerid,-1,"Vocк estб com fome, coma algo na lanchonete ou ira morrer!");
        }
        if(GetPVarInt(playerid,"Sede")<= 0)
        {
                    SetPlayerHealth(playerid, 0);
                    SendClientMessage(playerid, -1, "Vocк morreu desnutrido. Beba algo na lanchonete!");
                    mSede[playerid] = true;
            }
        return 1;
    }
    forward Acordar(playerid);
    public Acordar(playerid)
    {
        TogglePlayerControllable(playerid, true);
        ClearAnimations(playerid);
        ContagemSono[playerid] = SetTimerEx("Sono", 35000, true, "i", playerid);
        SetProgressBarValue(barsono, 100);
        UpdateProgressBar(barsono, playerid);
        SetPVarInt(playerid,"Sono", 100);
        return 1;
    }
    forward AcordarDes(playerid);
    public AcordarDes(playerid)
    {
        TogglePlayerControllable(playerid, true);
        ClearAnimations(playerid);
        ContagemSono[playerid] = SetTimerEx("Sono", 35000, true, "i", playerid);
        SetProgressBarValue(barsono, 30);
        UpdateProgressBar(barsono, playerid);
        SetPVarInt(playerid,"Sono", 30);
        SendClientMessage(playerid, -1,"Vocк acordou, durma (/durmir) para nгo desmaiar novamente!");
        return 1;
    }
    public OnPlayerDeath(playerid ,killerid, reason)
    {
            if(mFome[playerid] == true)
            {
                    SetProgressBarValue(barfome, 30);
                    UpdateProgressBar(barfome, playerid);
                    SetPVarInt(playerid,"Fome", 30);
                    mSede[playerid] = false;
            }
            else if(mSede[playerid] == true)
            {
            SetProgressBarValue(barsede, 30);
            SetPVarInt(playerid,"Sede", 30);
            UpdateProgressBar(barsede, playerid);
            mSede[playerid] = false;
            }
            return 1;
    }
    forward SalvarDiiMeNoR(playerid);
    public SalvarDiiMeNoR(playerid)
    {
        format(arquivo, sizeof(arquivo), PASTA_CONTAS, PlayerName(playerid));
        if(DOF2_FileExists(arquivo))
        {
            DOF2_SetInt(arquivo, "Fome", GetPVarInt(playerid,"Fome"));
            DOF2_SetInt(arquivo, "Sede", GetPVarInt(playerid,"Sede"));
            DOF2_SetInt(arquivo, "Sono", GetPVarInt(playerid,"Sono"));
            DOF2_SaveFile();
        }
        return 1;
    }
    public OnPlayerDisconnect(playerid, reason)
    {
        SalvarDiiMeNoR(playerid);
        return 1;
    }
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
            if(dialogid == CARDAPIO)
            {
                if(!response) { return 1; }
                switch(listitem)
            {
                case 0://Pizza
                            {
                                if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$50 para comprar!");
                                if(GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                GivePlayerMoney(playerid, -50);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Pizza'");
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
                                SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(barfome,playerid);
                            }
                            case 1://Macarronada
                            {
                                if(GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$20 para comprar!");
                                if(GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                GivePlayerMoney(playerid, -20);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Macarronada'");
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+15);
                                SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(barfome,playerid);
                            }
                            case 2://Marmitex
                            {
                                if(GetPlayerMoney(playerid) < 12) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$12 para comprar!");
                                if(GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                GivePlayerMoney(playerid, -12);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Marmitйx'");
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
                                SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(barfome,playerid);
                            }
                            case 3://Salmгo Grelhado
                            {
                                if(GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$20 para comprar!");
                                if(GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                GivePlayerMoney(playerid, -20);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Salmгo Grelhado'");
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+30);
                                SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(barfome,playerid);
                            }
                            case 4://Bacalhau
                            {
                                if(GetPlayerMoney(playerid) < 21) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$21 para comprar!");
                                if(GetPVarInt(playerid,"Fome") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de comida!");
                                ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
                                GivePlayerMoney(playerid, -21);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de comprar um prato 'Bacalhau'");
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+20);
                                SetProgressBarValue(barfome, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(barfome,playerid);
                            }
                            case 5://Agua
                            {
                                if(GetPlayerMoney(playerid) < 5) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$5 para comprar!");
                                if(GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                GivePlayerMoney(playerid, -5);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de beber 'Бgua'");
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+5);
                                SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(barsede,playerid);
                            }
                            case 6://Suco
                            {
                                if(GetPlayerMoney(playerid) < 12) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$12 para comprar!");
                                if(GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                GivePlayerMoney(playerid, -12);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de beber 'Suco'");
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+10);
                                SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(barsede, playerid);
                            }
                            case 7://Refrigerante
                            {
                                if(GetPlayerMoney(playerid) < 17) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$17 para comprar!");
                                if(GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                GivePlayerMoney(playerid, -17);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de beber 'Refrigerante'");
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+15);
                                SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(barsede,playerid);
                            }
                            case 8://Energetico
                            {
                                if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, 0xF68E00F6,"{FF0000}[ERRO] {FFFFFF}Vocк nгo tem R$100 para comprar!");
                                if(GetPVarInt(playerid,"Sede") >= 100) return SendClientMessage(playerid,-1,"Vocк estб satisfeito, nгo precisa mais de bebida!");
                                ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
                                GivePlayerMoney(playerid,-100);
                                SendClientMessage(playerid, 0xFFFFFF ,"[INFO] Vocк acabou de beber 'Energetico'");
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+40);
                                SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(barsede,playerid);
                            }
                    }
            }
            if(dialogid == HOTEL)
            {
            if(response)
                    {
                            if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1,"|HOTEL| Vocк nгo tem R$100 para alugar!");
                            if(GetPVarInt(playerid,"Sono") >= 75) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta com sono!");
                            SetPlayerPos(playerid, 345.4432,302.6292,999.9382);
                            SetPlayerInterior(playerid, 6);
                            SendClientMessage(playerid, -1, "|Hotel| Para dumir use (/durmir), em cima da cama");
                            GivePlayerMoney(playerid, -100);

            }
            else
                    {
                            SendClientMessage(playerid, -1, "Vocк optou por nгo alugar, pode durmir em sua casa.");
            }
            }
            return 0;
    }
    forward Corrigir(playerid);
    public Corrigir(playerid)
    {
            if(GetPVarInt(playerid,"Sede") > 100)
            {
                    SetPVarInt(playerid,"Sede", 100);
                    SetProgressBarValue(barsede, GetPVarInt(playerid,"Sede"));
                    UpdateProgressBar(barsede,playerid);
            }
            if(GetPVarInt(playerid,"Fome") > 100)
            {
                    SetPVarInt(playerid,"Fome", 100);
                    SetProgressBarValue(barsede, GetPVarInt(playerid,"Fome"));
                    UpdateProgressBar(barsede, playerid);
            }
            return false;
    }
    CMD:cardapio(playerid)
    {
            if(lanchonete[playerid] == true)
            {
            ShowPlayerDialog(playerid, CARDAPIO ,DIALOG_STYLE_LIST,"Cardбpio Lanchonete","- Pizza\t{00EE76}R$150\n- Macarronada\t{00EE76}R$200\n- Marmitex\t{00EE76}R$120\n- Salmгo Grelhado\t{00EE76}R$200\n- Bacalhau\t{00EE76}R$210\n- Бgua\t{00EE76}R$5\n- Suco\t{00EE76}R$12\n- Refrigerante\t{00EE76}R$17\n- Energetico\t{00EE76}R$100\n\n","Aceitar","Cancelar");
            }
            else
            {
                    SendClientMessage(playerid, -1,"[ERRO]Vocк nгo esta na lanchonete!");
            }
            return 1;
    }
    CMD:durmir(playerid)
    {
            if(!IsPlayerInRangeOfPoint(playerid, 2.0, 345.4432,302.6292,999.9382)) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta em cima da cama!");
            if(GetPVarInt(playerid,"Sono") >= 75) return SendClientMessage(playerid,-1,"|INFO| Vocк nгo esta com sono!");
            TogglePlayerControllable(playerid, false);
            SetPlayerDrunkLevel(playerid, 0);
            ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 1, 0);
            KillTimer(ContagemSono[playerid]);
            SetTimerEx("Acordar", 40000, false, "i", playerid);
            return 1;
    }
    stock Objetos()
    {
        CreateObject(16781, 1355.200000, -1553.700000, 12.400000, 0.000000, 0.000000, 254.000000);
        Cercas[0] = CreateObject(1408, 1358.100000, -1570.600000, 13.100000, 0.000000, 0.000000, 345.000000);
        Cercas[1] = CreateObject(1408, 1353.100000, -1569.200000, 13.100000, 0.000000, 0.000000, 344.998000);
        Cercas[2] = CreateObject(1408, 1348.100000, -1567.800000, 13.100000, 0.000000, 0.000000, 344.998000);
        Cercas[3] = CreateObject(1408, 1343.100000, -1566.400000, 13.100000, 0.000000, 0.000000, 344.998000);
        Cercas[4] = CreateObject(1408, 1330.300000, -1563.000000, 13.100000, 0.000000, 0.000000, 346.998000);
        Cercas[5] = CreateObject(1408, 1325.200000, -1562.300000, 13.100000, 0.000000, 0.000000, 356.998000);
        Cercas[6] = CreateObject(1408, 1327.900000, -1537.000000, 13.100000, 0.000000, 0.000000, 248.000000);
        Cercas[7] = CreateObject(1408, 1326.100000, -1541.900000, 13.100000, 0.000000, 0.000000, 252.000000);
        Cercas[8] = CreateObject(1408, 1324.900000, -1546.900000, 13.100000, 0.000000, 0.000000, 262.000000);
        Cercas[9] = CreateObject(1408, 1324.100000, -1552.000000, 13.100000, 0.000000, 0.000000, 260.000000);
        Cercas[10] = CreateObject(1408, 1323.300000, -1557.100000, 13.100000, 0.000000, 0.000000, 262.000000);
        Cercas[11] = CreateObject(1408, 1323.000000, -1559.500000, 13.100000, 0.000000, 0.000000, 262.000000);
        CreateObject(4100, 1336.100000, -1535.000000, 14.200000, 0.000000, 0.000000, 316.000000);
        CreateObject(4100, 1349.700000, -1536.200000, 14.200000, 0.000000, 0.000000, 314.000000);
        CreateObject(4100, 1363.100000, -1538.900000, 14.200000, 0.000000, 0.000000, 304.000000);
        CreateObject(1594, 1325.900000, -1559.800000, 13.000000, 0.000000, 0.000000, 0.000000);
        CreateObject(1594, 1330.900000, -1560.000000, 13.000000, 0.000000, 0.000000, 0.000000);
        CreateObject(1594, 1346.100000, -1544.600000, 13.000000, 0.000000, 0.000000, 0.000000);
        CreateObject(14657, 1334.600000, -1543.400000, 13.100000, 0.000000, 0.000000, 84.000000);
        CreateObject(1281, 1334.700000, -1544.000000, 13.300000, 0.000000, 0.000000, 0.000000);
        CreateObject(1582, 1334.100000, -1549.500000, 13.400000, 0.000000, 0.000000, 0.000000);
        CreateObject(2420, 1341.100000, -1565.900000, 12.800000, 0.000000, 0.000000, 344.000000);
        CreateObject(955, 1350.600000, -1555.700000, 12.500000, 0.000000, 0.000000, 256.000000);
    }
    stock PlayerName(playerid)
    {
            static name[MAX_PLAYER_NAME];
            GetPlayerName(playerid,name,sizeof(name));
            return name;
    }
espero ter ajudado
Amigo, nгo fique revivendo topico olha a data dele .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)