Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / I´m Hungry script need held to fix

Author
Message
maxiqueen123
15
Years of Service
User Offline
Joined: 26th May 2009
Location:
Posted: 10th Apr 2013 08:01 Edited at: 10th Apr 2013 08:02
Hallo guys (sry for bab english) i writing my script that you need to eat... need to drink and need to sleep...

The script is working but dont show the Huds anybode can help to fix this

Huds in Download

Variables in german sorry for this


Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.

Attachments

Login to view attachments
The Master D
15
Years of Service
User Offline
Joined: 20th Feb 2009
Location:
Posted: 10th Apr 2013 17:20
Are these HUDs supposed to continue being displayed as your hunger or thirst progresses? Because you aren't using any hudunshow commands, which will make the HUDs be continually displayed until the end of eternity.

Also, I don't notice any state=1 commands in your script. In the line:

You change the state to state=1, but the HUD creation process is in state=0. Basically you are telling the script to negate that process, which is obviously not what you want here.

My suggestion would be to place the blocks of code where you create your HUDs into the beginning of the script and then test your script. I believe this will work. If not, you might have to change the state= action in the line:


Hope this helps you out mate, this is a great idea for a script, I'm really liking what you're doing!

AMD FX-6300 Vishera 3.5GHz, Radeon HD 7850 2GB, 8 GB RAM, Win 7 Pro 64 Bit
maxiqueen123
15
Years of Service
User Offline
Joined: 26th May 2009
Location:
Posted: 18th Apr 2013 19:39
Ok it works thank you very much

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.
The Master D
15
Years of Service
User Offline
Joined: 20th Feb 2009
Location:
Posted: 19th Apr 2013 03:23
No problem, always glad to help a new scripter out.

AMD FX-6300 Vishera 3.5GHz, Radeon HD 7850 2GB, 8 GB RAM, Win 7 Pro 64 Bit
maxiqueen123
15
Years of Service
User Offline
Joined: 26th May 2009
Location:
Posted: 7th May 2013 10:28 Edited at: 7th May 2013 10:32
ok i have 2 litle problems with my scripts

the first one i have iff i pick up something like 2 medkit´s
Press F1 and i youse all medkits at the same time

you can only pickup max 3 per item thats ok... but iff i have pick up 3 and youse theam (than i have 0 in inventory) i cant pick up anymore why ?

heres the script thats makes you hungry and animited health



Than i here´s the backpack script iff you pickup something press F1 for medkit press F2 to eat and so on



and the pickup script for food


[EDIT]
uploaded the uds so you can test it and sry for my very very bad english

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.

Attachments

Login to view attachments
The Master D
15
Years of Service
User Offline
Joined: 20th Feb 2009
Location:
Posted: 11th May 2013 05:49
Your English is fine, mate. Don't worry about it!

Okay, for starters, I'm not sure what you're trying to do in these lines:

I feel like you'd be better off using the varless and vargreater conditions for these lines, it would be a lot easier and would shrink the size of your script a little bit. Also, you declare your variables twice, which you obviously don't need to do, as it is redundant.

Next, I think you should focus your attention to these lines here:

I'm not understanding exactly what you're trying to accomplish here with the variables here because you're increasing them by 0 which in theory would virtually make them stay the same.

I hope this can sort of guide you to different points to look at in your scripts. I didn't have much time to give a full dissection of them, and I wanted to at least give you something If you need more help, feel free to ask more questions.

Cheers

AMD FX-6300 Vishera 3.5GHz, Radeon HD 7850 2GB, 8 GB RAM, Win 7 Pro 64 Bit

Login to post a reply

Server time is: 2024-11-23 14:16:59
Your offset time is: 2024-11-23 14:16:59