Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Nothing on Apr 14, 2015, 03:57 AM

Title: Erorr The Given Timer Call Back Does not
Post by: Nothing on Apr 14, 2015, 03:57 AM
Hey I Have 0.3 scripts i was changing that to 0.4 i face an error the given timer callback does not exist.
What is This How i can fix it.I Have a Screenshot Check This Plzz.
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fimg.vcmp.ml%2F%3Fdi%3DVYGE&hash=ab527434dee47a57d1c533ee0833aeb14116c244)
Title: Re: Erorr The Given Timer Call Back Does not
Post by: Finch on Apr 14, 2015, 04:06 AM
post the screen shot of notepad++ with line
Title: Re: Erorr The Given Timer Call Back Does not
Post by: Nothing on Apr 14, 2015, 04:12 AM
Quote from: Finch on Apr 14, 2015, 04:06 AMpost the screen shot of notepad++ with line
Ok Wait I shall Paste a Pic Later
Can i Past Code
Title: Re: Erorr The Given Timer Call Back Does not
Post by: Nothing on Apr 14, 2015, 05:49 AM
function onScriptLoad()
{
stats<-array(GetMaxPlayers(),null);
phone <- array(GetMaxPlayers(),0);
//Loading sqlite
dofile( "Race.nut" );
RaceSystem();
// Load Modules
LoadModule( "sq_hashing" );
print(LoadModule( "sq_ini" ));
LoadModule( "sq_lite" );
db2 <- ConnectSQL( "DataBase.db" );
print( "Connected SQL Database." );
secondarydb <- ConnectSQL( "countrydb.sqlite" );

pstat <- array(GetMaxPlayers(), null);
KOKActive <- false;
KOKCount <- 0;

spawntime<-array(GetMaxPlayers(),0);

// Give some information about the script
print( "[Loaded] " + ScriptName );
print( "Created By: " + Creator );
print( "Helps: " + Helps );

dofile( "Functions.nut" );

// Add then load the other script files.
LoadScripts();

// We will now load the information into hashes.
LoadHashes();

// This is a timer that will save the hashes every 5 minutes to prevent minimum data loss
// First we give the name of the function to call, how often it's called in ms and how many times to call it.
// If 0 is given, it will constantly run until the scripts are unloaded.
NewTimer( "SaveHashes", 300000, 0 );
lastmsg <- array(20,"");
lastmsg2 <- array(20,"");

loadclanstats();
TimeToGotoloc <- array( GetMaxPlayers(), false );
TimeGotoloc <- array( GetMaxPlayers(), false );

}

const INFO_SPAWNS = "RandSpawn.ini";
Title: Re: Erorr The Given Timer Call Back Does not
Post by: Kratos_ on Apr 14, 2015, 06:14 AM
Your Timer couldn't access function SaveHashes . I'm assuming that you haven't defined it .
Try to execute this code into your function onscript load without defining function abc .

NewTimer("abc", 5000, 0);
Same error message will appear as that of yours.
Title: Re: Erorr The Given Timer Call Back Does not
Post by: Finch on Apr 14, 2015, 06:51 AM
u r converting vccnr? there is no function of savehashes loadhashes and loadmodules
Title: Re: Erorr The Given Timer Call Back Does not
Post by: Nothing on Apr 14, 2015, 07:23 AM
No It is FBS.
Title: Re: Erorr The Given Timer Call Back Does not
Post by: Honey on Apr 14, 2015, 11:23 AM
FBS Is not recommended since it's obsolete, Use any other script instead
Title: Re: Erorr The Given Timer Call Back Does not
Post by: Nothing on Apr 15, 2015, 11:27 AM
Quote from: Honey on Apr 14, 2015, 11:23 AMFBS Is not recommended since it's obsolete, Use any other script instead
Oh Teri Honey.
Honey I Shall Try Any Other.
Thanks For Information