[Ajuda] Progress Bar
#1

Boa Tarde Galera do Fуrum, andei pensando aqui, e gostaria de criar 3 Progress Bar, 1 indica FOME, a 2 indica SEDE e a 3 indica SONO, gostaria de criar elas, mas sou muito ruim em Script, jб atй vi o Tutorial do Paulor, mas nгo entendi muito bem, e ele nгo explicou como criar de fome, pelo que eu entendi -.-, eu queria um sistema desta maneira mais ou menos: A barra de fome vai diminuindo com o tempo, e ele tem que ir em um Restaurante COMER, para poder preencher toda, queria que a barra de fome fosse LARANJA, a SEDE AZUL e o SONO VERDE, a sede ele bebe das maquinas de refrigerante/lanchonete e o sono, pode dormir em CASA/HOTEL, se for possivel! Me ajudem! Ficaria muito, muito, muito agradecido! Bye-Bye
Reply
#2

Estuda o sistema do gamemode Beta RP .
https://sampforum.blast.hk/showthread.php?tid=437194
Reply
#3

Blz, vou ver ele, e obg por me ajudar
Reply
#4

Coloquei o FS, testei, funfou, mas o ID dos DIALOGS, tava em conflito com o do GM (Nгo aparecia os DIALOGS) e eu tava na marca vermelha -.-, entгo mudei os IDs dos DIALOGS para 1111110 etc, ai deu estes erros:
Код:
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(111) : error 017: undefined symbol "CreatePlayerTextDraw"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(111) : warning 213: tag mismatch
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(112) : error 017: undefined symbol "PlayerTextDrawBackgroundColor"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(113) : error 017: undefined symbol "PlayerTextDrawFont"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(114) : error 017: undefined symbol "PlayerTextDrawLetterSize"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(115) : error 017: undefined symbol "PlayerTextDrawColor"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(116) : error 017: undefined symbol "PlayerTextDrawSetOutline"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(117) : error 017: undefined symbol "PlayerTextDrawSetProportional"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(118) : error 017: undefined symbol "PlayerTextDrawSetShadow"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(119) : error 017: undefined symbol "PlayerTextDrawSetSelectable"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(122) : error 017: undefined symbol "CreatePlayerTextDraw"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(122) : warning 213: tag mismatch
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(123) : error 017: undefined symbol "PlayerTextDrawBackgroundColor"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(124) : error 017: undefined symbol "PlayerTextDrawFont"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(125) : error 017: undefined symbol "PlayerTextDrawLetterSize"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(126) : error 017: undefined symbol "PlayerTextDrawColor"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(127) : error 017: undefined symbol "PlayerTextDrawSetOutline"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(128) : error 017: undefined symbol "PlayerTextDrawSetProportional"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(129) : error 017: undefined symbol "PlayerTextDrawSetShadow"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(130) : error 017: undefined symbol "PlayerTextDrawSetSelectable"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(132) : error 017: undefined symbol "CreatePlayerTextDraw"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(132) : warning 213: tag mismatch
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(133) : error 017: undefined symbol "PlayerTextDrawBackgroundColor"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(134) : error 017: undefined symbol "PlayerTextDrawFont"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(135) : error 017: undefined symbol "PlayerTextDrawLetterSize"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(136) : error 017: undefined symbol "PlayerTextDrawColor"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(137) : error 017: undefined symbol "PlayerTextDrawSetOutline"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(138) : error 017: undefined symbol "PlayerTextDrawSetProportional"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\filterscripts\Simulator.pwn(139) : error 017: undefined symbol "PlayerTextDrawSetShadow"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#5

Faltou algum "return 1;" ou "}" ou "{" no seu cуdigo '-'
Reply
#6

Lб tб dizendo que os erros tб na linha 111 б 139, olha o code, eu nгo achei -.-
Код:
BugFix = CreatePlayerTextDraw(playerid,608.000000, 146.000000, "_"); // Nгo remova esta textdraw, pois ela elimina o bug do veнculo.
PlayerTextDrawBackgroundColor(playerid,BugFix, 255); // Nгo remova esta textdraw, pois ela elimina o bug do veнculo.
PlayerTextDrawFont(playerid,BugFix, 1); // Nгo remova esta textdraw, pois ela elimina o bug do veнculo.
PlayerTextDrawLetterSize(playerid,BugFix, 0.370000, 0.599999); // Nгo remova esta textdraw, pois ela elimina o bug do veнculo.
PlayerTextDrawColor(playerid,BugFix, -1); // Nгo remova esta textdraw, pois ela elimina o bug do veнculo.
PlayerTextDrawSetOutline(playerid,BugFix, 0); // Nгo remova esta textdraw, pois ela elimina o bug do veнculo.
PlayerTextDrawSetProportional(playerid,BugFix, 1); // Nгo remova esta textdraw, pois ela elimina o bug do veнculo.
PlayerTextDrawSetShadow(playerid,BugFix, 1); // Nгo remova esta textdraw, pois ela elimina o bug do veнculo.
PlayerTextDrawSetSelectable(playerid,BugFix, 0); // Nгo remova esta textdraw, pois ela elimina o bug do veнculo.


TD_HUNG = CreatePlayerTextDraw(playerid,608.000000, 146.000000, "100");
PlayerTextDrawBackgroundColor(playerid,TD_HUNG, 255);
PlayerTextDrawFont(playerid,TD_HUNG, 1);
PlayerTextDrawLetterSize(playerid,TD_HUNG, 0.370000, 0.599999);
PlayerTextDrawColor(playerid,TD_HUNG, -1);
PlayerTextDrawSetOutline(playerid,TD_HUNG, 0);
PlayerTextDrawSetProportional(playerid,TD_HUNG, 1);
PlayerTextDrawSetShadow(playerid,TD_HUNG, 1);
PlayerTextDrawSetSelectable(playerid,TD_HUNG, 0);

TD_BLAD = CreatePlayerTextDraw(playerid,608.000000, 177.000000, "100");
PlayerTextDrawBackgroundColor(playerid,TD_BLAD, 255);
PlayerTextDrawFont(playerid,TD_BLAD, 1);
PlayerTextDrawLetterSize(playerid,TD_BLAD, 0.370000, 0.599999);
PlayerTextDrawColor(playerid,TD_BLAD, -1);
PlayerTextDrawSetOutline(playerid,TD_BLAD, 0);
PlayerTextDrawSetProportional(playerid,TD_BLAD, 1);
PlayerTextDrawSetShadow(playerid,TD_BLAD, 1);
Reply
#7

Como й que vou adivinhar oque vocк fez por ultimo ? '-'
Reply
#8

Sу troquei os DIALOGS ID
Код:
#define     DIALOG_LANCHE           1111110;
//
#define     DIALOG_BLAD_0			1111111;
#define     DIALOG_BLAD_1			1111112;
#define     DIALOG_BLAD_2           1111113;
#define     DIALOG_BLAD_3           1111114;
#define     DIALOG_BLAD_4           1111115;
#define     DIALOG_BLAD_5           1111116;
#define     DIALOG_BLAD_6			1111117;
#define     DIALOG_BLAD_7			1111118;
#define     DIALOG_BLAD_8			1111119;
#define     DIALOG_BLAD_9           1111120;
#define     DIALOG_BLAD_10          1111121;
#define     DIALOG_BLAD_11          1111122;
#define     DIALOG_BLAD_11_2        1111123;
#define     DIALOG_BLAD_12          1111124;
#define     DIALOG_BLAD_12_2        1111125;
#define     DIALOG_BLAD_13          1111126;
#define     DIALOG_BLAD_13_2        1111127;

//
#define     DIALOG_BATH_0       1111128;
#define     DIALOG_BATH_1       1111129;
#define     DIALOG_BATH_2		1111130;
#define     DIALOG_BATH_3		1111131;
#define     DIALOG_BATH_4		1111132;
#define     DIALOG_BATH_5		1111133;
#define     DIALOG_BATH_6		1111134;
#define     DIALOG_BATH_7		1111135;
#define     DIALOG_BATH_8		1111136;
#define     DIALOG_BATH_9		1111137;
#define     DIALOG_BATH_10		1111138;
#define     DIALOG_BATH_11		1111139;
#define     DIALOG_BATH_11_2	1111140;
#define     DIALOG_BATH_12		1111141;
#define     DIALOG_BATH_12_2	1111142;
#define     DIALOG_BATH_13		1111143;
#define     DIALOG_BATH_13_2	1111144;

//
#define     DIALOG_HAND_0       1111145;
#define     DIALOG_HAND_1       1111146;
#define     DIALOG_HAND_2       1111147;
#define     DIALOG_HAND_3		1111148;
#define     DIALOG_HAND_4       1111149;
#define     DIALOG_HAND_5       1111150;
#define     DIALOG_HAND_6       1111151;
#define     DIALOG_HAND_7       1111152;
#define     DIALOG_HAND_8       1111153;
#define     DIALOG_HAND_9       1111154;
#define     DIALOG_HAND_10		1111155;
#define     DIALOG_HAND_11		1111156;
#define     DIALOG_HAND_11_2	1111157;
#define     DIALOG_HAND_12		1111158;
#define     DIALOG_HAND_12_2	1111159;
#define     DIALOG_HAND_13		1111160;
#define     DIALOG_HAND_13_2	1111161;
Reply
#9

Atualiza as includes amigo
Reply
#10

Quote:

#define DIALOG_BATH_13_2 1111144;

Porque ponhar ";" no fim das DEFINE ?

Retire.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)