SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 25/07/2012, 11:53 PM   #291
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,576
Reputation: 1070
Default Re: [INC] Progress Bar 1.3.1

Some people complained about it, personally I've never had an issue with it I agree that it's a waste of memory.

Plus when I edited the script, I simply replaced the variable types and function names rather than mess about with the array. I will make an edit though, thanks for reminding me to!
__________________
Scavenge and Survive: PvP Survival Server: 37.59.116.108
More information
Scavenge and Survive Tutorial Video #1

A PvP survival game where everyone is pitched against each other.
Supplies are scarce and everyone is willing to kill for the same goals!
Safety in numbers is key to survival, but trust is hard to find.

[HLF]Southclaw is offline   Reply With Quote
Old 26/07/2012, 11:03 AM   #292
The__
Huge Clucker
 
Join Date: Nov 2011
Posts: 470
Reputation: 53
Default Re: [INC] Progress Bar 1.3.1

Tag mismatches on all of these :
Code:
SetPlayerProgressBarValue(playerid, hunger[playerid], PlayerInfo[playerid][pHunger]);
ShowPlayerProgressBar(playerid, hunger[playerid]);
SetPlayerProgressBarMaxValue(playerid,hunger[playerid], 100);
SetPlayerProgressBarValue(playerid, hunger[playerid], 100.0);
UpdatePlayerProgressBar(playerid,hunger[playerid]);
The__ is offline   Reply With Quote
Old 27/07/2012, 12:32 PM   #293
The__
Huge Clucker
 
Join Date: Nov 2011
Posts: 470
Reputation: 53
Default Re: [INC] Progress Bar 1.3.1

Anyone ?
The__ is offline   Reply With Quote
Old 27/07/2012, 01:23 PM   #294
Jessyy
Huge Clucker
 
Join Date: May 2009
Posts: 234
Reputation: 87
Default Re: [INC] Progress Bar 1.3.1

I hope that variable "hunger" & "PlayerInfo[playerid][pHunger]" is defined as a float one ...
Code:
new Float:hunger[...];
__________________
Always have your stuff when you need it with Dropbox. 2GB account is free! https://db.tt/R3HuiXZk
Works at loading... Please wait ███████████████]99.9%
Jessyy is offline   Reply With Quote
Old 27/07/2012, 03:40 PM   #295
The__
Huge Clucker
 
Join Date: Nov 2011
Posts: 470
Reputation: 53
Default Re: [INC] Progress Bar 1.3.1

Code:
new Bar:hunger[MAX_PLAYERS];
enum pInfo
{
      pHunger
};
new PlayerInfo[MAX_PLAYERS][pInfo];
The__ is offline   Reply With Quote
Old 27/07/2012, 04:18 PM   #296
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,576
Reputation: 1070
Default Re: [INC] Progress Bar 1.3.1

@Jessyy: if it's an enumerated field then he's not going to define it like that...

@The__: That's not a float is it!

Define it like this:

Code:
enum pInfo
{
    Float:pHunger
};



By the way, I have another update on the way for this, fixes some bugs, removes the array as the guy on the previous page reminded me it was still an array and thus a waste of memory
__________________
Scavenge and Survive: PvP Survival Server: 37.59.116.108
More information
Scavenge and Survive Tutorial Video #1

A PvP survival game where everyone is pitched against each other.
Supplies are scarce and everyone is willing to kill for the same goals!
Safety in numbers is key to survival, but trust is hard to find.

[HLF]Southclaw is offline   Reply With Quote
Old 27/07/2012, 04:32 PM   #297
The__
Huge Clucker
 
Join Date: Nov 2011
Posts: 470
Reputation: 53
Default Re: [INC] Progress Bar 1.3.1

Quote:
Originally Posted by [HLF]Southclaw View Post
...
So this is how I create the bar ?
Code:
new Bar:hunger[MAX_PLAYERS];
and this is a function which works, for example ? :
Code:
SetPlayerProgressBarMaxValue(playerid,hunger[playerid], 100.0);
The__ is offline   Reply With Quote
Old 27/07/2012, 04:39 PM   #298
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,576
Reputation: 1070
Default Re: [INC] Progress Bar 1.3.1

Yes, that's exactly how you do it.
__________________
Scavenge and Survive: PvP Survival Server: 37.59.116.108
More information
Scavenge and Survive Tutorial Video #1

A PvP survival game where everyone is pitched against each other.
Supplies are scarce and everyone is willing to kill for the same goals!
Safety in numbers is key to survival, but trust is hard to find.

[HLF]Southclaw is offline   Reply With Quote
Old 27/07/2012, 04:58 PM   #299
The__
Huge Clucker
 
Join Date: Nov 2011
Posts: 470
Reputation: 53
Default Re: [INC] Progress Bar 1.3.1

tag mismatch on
Code:
SetPlayerProgressBarMaxValue(playerid,hunger[playerid], 100.0);
The__ is offline   Reply With Quote
Old 27/07/2012, 05:35 PM   #300
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,576
Reputation: 1070
Default Re: [INC] Progress Bar 1.3.1

Oh if you're using player bars, the declaration tag is "PlayerBar:" not "Bar:".
__________________
Scavenge and Survive: PvP Survival Server: 37.59.116.108
More information
Scavenge and Survive Tutorial Video #1

A PvP survival game where everyone is pitched against each other.
Supplies are scarce and everyone is willing to kill for the same goals!
Safety in numbers is key to survival, but trust is hard to find.

[HLF]Southclaw is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[BUILT IN-PROGRESS] SA-MP Control Panel eXchainZ-FoReVeR Help Archive 68 04/07/2011 11:19 AM
My new town(In Progress), preview :-) Zh3r0 Screenshots and Videos 54 09/01/2011 11:03 PM
very very simple server sided weapons in progress belhot Help Archive 4 03/06/2010 10:01 PM
Rape in progress messages :P aNdReSkKkK Help Archive 0 27/02/2010 12:23 AM


All times are GMT. The time now is 03:23 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.