Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Spider on Nov 22, 2015, 10:23 AM

Title: count and random cash prob
Post by: Spider on Nov 22, 2015, 10:23 AM
i want to change robbing money to random cash and i  want to change the for robbing.the example Count1
Title: Re: count and random cash prob
Post by: KAKAN on Nov 22, 2015, 11:36 AM
Try to make one.
if u got error/s post here( obviously you'll get 1 error( at least )  )
Title: Re: count and random cash prob
Post by: Spider on Nov 22, 2015, 03:12 PM
iam getting erorr in count
when i set Count4 it freeze me
Title: Re: count and random cash prob
Post by: KAKAN on Nov 22, 2015, 03:26 PM
Post the function lol
Title: Re: count and random cash prob
Post by: Spider on Nov 22, 2015, 03:46 PM
NewTimer( "Count1", 100009, 1, 10, player.ID );
Title: Re: count and random cash prob
Post by: Xmair on Nov 22, 2015, 04:25 PM
HAHAHAHAHAHAHAHAHAHAHAHHAHHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHHAHHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHHAHHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA fuck you
Title: Re: count and random cash prob
Post by: KAKAN on Nov 22, 2015, 05:44 PM
Quote from: Spider on Nov 22, 2015, 03:46 PMNewTimer( "Count1", 100009, 1, 10, player.ID );
Why are you giving that "10" thing?
Use this:-
local spideyfux0r = player.ID
NewTimer("Count1",10000,1,spideyfux0r);
Title: Re: count and random cash prob
Post by: Thijn on Nov 22, 2015, 09:06 PM
Quote from: KAKAN on Nov 22, 2015, 05:44 PM
Quote from: Spider on Nov 22, 2015, 03:46 PMNewTimer( "Count1", 100009, 1, 10, player.ID );
Why are you giving that "10" thing?
Use this:-
local spideyfux0r = player.ID
NewTimer("Count1",10000,1,spideyfux0r);
Because he wants his timer to run 10 times?
Title: Re: count and random cash prob
Post by: KAKAN on Nov 23, 2015, 08:50 AM
Quote from: Thijn on Nov 22, 2015, 09:06 PM
Quote from: KAKAN on Nov 22, 2015, 05:44 PM
Quote from: Spider on Nov 22, 2015, 03:46 PMNewTimer( "Count1", 100009, 1, 10, player.ID );
Why are you giving that "10" thing?
Use this:-
local spideyfux0r = player.ID
NewTimer("Count1",10000,1,spideyfux0r);
Because he wants his timer to run 10 times?
Then why did he gave "1" in the repeat thing?
Title: Re: count and random cash prob
Post by: MacTavish on Nov 23, 2015, 09:33 AM
This is countdown from old leaked vccnr(perhaps) because that had countdown like this
NewTimer( "Count1", 1000, 1, 10, player.ID );
NewTimer( "Count1", 2000, 1, 9, player.ID );
NewTimer( "Count1", 3000, 1, 8, player.ID );
NewTimer( "Count1", 4000, 1, 7, player.ID );
NewTimer( "Count1", 5000, 1, 6, player.ID );
NewTimer( "Count1", 6000, 1, 5, player.ID );
NewTimer( "Count1", 7000, 1, 4, player.ID );
NewTimer( "Count1", 8000, 1, 3, player.ID );
NewTimer( "Count1", 9000, 1, 2, player.ID );
NewTimer( "Count1", 10000, 1, 1, player.ID );

function Count1(text, plr)
{
local player = FindPlayer(plr);
Announce("time left :"+text,player);
}

Now hope you guys understood
Title: Re: count and random cash prob
Post by: Spider on Nov 23, 2015, 11:32 AM
and i should post this announce in the bottom of main.nut.right?
Title: Re: count and random cash prob
Post by: Xmair on Nov 23, 2015, 11:38 AM
As @Doom said, please don't help @Spidey/@Spider as he don't even know a single word of squirrel scripting. Leave him like that till he learns something.
Title: Re: count and random cash prob
Post by: KAKAN on Nov 23, 2015, 01:37 PM
Quote from: Kusanagi on Nov 23, 2015, 09:33 AMThis is countdown from old leaked vccnr(perhaps) because that had countdown like this
<snip>
Now hope you guys understood

That code won't even work because the announce thing needs  a string instead of a int, so make sure you use .tostring() or you make it a string in the timer.

Quote from: Xmair on Nov 23, 2015, 11:38 AMAs @Doom said, please don't help @Spidey/@Spider as he don't even know a single word of squirrel scripting. Leave him like that till he learns something.
That was for some days, the section was made for helping peoples, so why we shouldn't?
@Doom please don't laugh again. :/
Title: Re: count and random cash prob
Post by: DizzasTeR on Nov 23, 2015, 02:42 PM
Quote from: KAKAN on Nov 23, 2015, 01:37 PMThat was for some days, the section was made for helping peoples, so why we shouldn't?
@Doom_Kill3R please don't laugh again. :/

Hahahaha.
Title: Re: count and random cash prob
Post by: Spider on Nov 23, 2015, 03:51 PM
fixed and locked