---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, ©2005-2015 SA-MP Team [16:11:29] [16:11:29] Server Plugins [16:11:29] -------------- [16:11:29] Loading plugin: sscanf.dll [16:11:29] [16:11:29] =============================== [16:11:29] sscanf plugin loaded. [16:11:29] Version: 2.8.1 [16:11:29] © 2012 Alex "******" Cole [16:11:29] =============================== [16:11:29] Loaded. [16:11:29] Loading plugin: streamer.dll *** Streamer Plugin v2.9.1 by Incognito loaded *** [16:11:29] Loading plugin: TDE.dll [16:11:29] TDEditor Plugin loaded, thank you for using. [16:11:29] Loaded. [16:11:29] Loading plugin: iTD.dll [16:11:29] * iTD Plugin loaded. (Support for textdraw editor mouse/keyboard) [16:11:29] Loaded. [16:11:29] Loaded 4 plugins. [16:11:29] [16:11:29] Filterscripts [16:11:29] --------------- [16:11:29] Loading filterscript 'TDE.amx'... [16:11:29] [16:11:29] [16:11:29] [16:11:29] [16:11:29] ___ __ __ [16:11:29] | | \|_ _|.|_ _ _ [16:11:29] | |__/|__(_|||_(_)| [16:11:29] [16:11:29] TDEditor V1.17 by adri1 [16:11:29] TDEditor loaded [16:11:29] [16:11:29] Loading filterscript 'iTD.amx'... [16:11:29] iPLEOMAX's TextDraw Editor loaded successfully! Version: 1.16 Stable (13/10/2012) [16:11:29] Loading filterscript 'trashmaster.amx'... [16:11:29] Loading filterscript 'PB2.amx'... [16:11:29] -------------------------------------- [16:11:29] Player Progress Bar Creator By: TheMasterNico || Loaded [16:11:29] -------------------------------------- [16:11:29] Loading filterscript 'DRIVETHRUFOMESEDE.amx'... [16:11:29] Loading filterscript 'FSS.amx'... [16:11:29] Sistema de DriveThru + Fome, Sede & Sono LIGADO ! [16:11:29] By : Learning [16:11:29] https://sampforum.blast.hk/showthread.php?tid=548602 [16:11:29] Loaded 6 filterscripts. [16:11:29] ---------------------------------- [16:11:29] Blank Gamemode by your name here [16:11:29] ---------------------------------- [16:11:29] Number of vehicle models: 2
Deve ser algum conflito com esses editores de TextDraw que vocк usa. Uma dica que lhe dou й de criar os textdraw's em um gamemode sozinho para que nгo ocorra o conflito.
Sobre o sistema de fome, sede e sono. Se vai mesmo usa-lo, faзa as alteraзхes desejadas no mesmo e teste tambйm em um GM separado e sozinho, apуs terminar, passe o code para seu GM. Se deixa-lo em FS pode causar conflitos tanto com sistemas do GM, quanto de outros FS's. Dificultando achar possнveis BUG's. |
format(arquivado, sizeof(arquivado), DVFOMESEDESONO, NomeDoJogador(playerid));
if(DOF2_FileExists(arquivado))
{
SetPVarInt(playerid,"FOME", DOF2_GetInt(arquivado, "FOME"));
SetPVarInt(playerid,"SEDE", DOF2_GetInt(arquivado, "SEDE"));
SetPVarInt(playerid,"SONO", DOF2_GetInt(arquivado, "SONO"));
SetProgressBarValue(PGFOME, DOF2_GetInt(arquivado, "FOME"));
SetProgressBarValue(PGSEDE, DOF2_GetInt(arquivado, "SEDE"));
SetProgressBarValue(PGSONO, DOF2_GetInt(arquivado, "SONO"));
UpdateProgressBar(PGFOME, playerid);
UpdateProgressBar(PGSEDE, playerid);
UpdateProgressBar(PGSONO, playerid); }else{
DOF2_CreateFile(arquivado);
DOF2_SetInt(arquivado, "FOME", 100);
DOF2_SetInt(arquivado, "SEDE", 100);
DOF2_SetInt(arquivado, "SONO", 100);
SetPVarInt(playerid,"FOME", DOF2_GetInt(arquivado, "FOME"));
SetPVarInt(playerid,"SEDE", DOF2_GetInt(arquivado, "SEDE"));
SetPVarInt(playerid,"SONO", DOF2_GetInt(arquivado, "SONO"));
SetProgressBarValue(PGFOME, DOF2_GetInt(arquivado, "FOME"));
SetProgressBarValue(PGSEDE, DOF2_GetInt(arquivado, "SEDE"));
SetProgressBarValue(PGSONO, DOF2_GetInt(arquivado, "SONO"));
UpdateProgressBar(PGFOME, playerid);
UpdateProgressBar(PGSEDE, playerid);
UpdateProgressBar(PGSONO, playerid);
DOF2_SaveFile();
}
Se citar o erro poderei dizer. Pois nгo achei nada errado neste code. Mas nгo uso dof2
Mudar pra dini nгo sei se resolveria, mas se usa dini no resto do seu gm, eu usaria ai tambйm para ficar padrao. |