#help with a small thing i was doing

78 messages · Page 1 of 1 (latest)

rapid flare
#

Well currently you're only reading in a character for the name and not a string.

#

Same for passport_doc sadly

#

Do your names contain spaces?

#

If they do you won't be able to use scanf easily

solid sorrel
#

hmmm id like to add spaces yes

#

like probably the person would write name and surname

#

then a number that has 4 digits, 5 max at passport doc

#

then name of pacient same thing, name and just a surname

rapid flare
#

Is this for a class?

solid sorrel
#

no, rp server lol

rapid flare
#

ahh okay, I only ask so I don't introduce features that are too advanced

#

sometimes teachers have strict requirements

solid sorrel
#

i mean it can be advanced im just trying to keep it easy cuz im still learning i know just the basics as you can see just printfs n scanfs lol

#

let me show you something approximate of what i want with this tiny code

#

my idea comes out of a website im using to get players immersed

#

tell me 4 numbers

#

random

rapid flare
#

you want me to tell you 4 random numbers

#

?

#

haha

solid sorrel
#

yes pls

#

xD

rapid flare
#

13, 7, 8, 34

#

lol sure

#

what u cookin

solid sorrel
#

okay hold on a sec

#

here

#

this is what i was doing

#

i had to translate everything so if i missed something just forget about it

#

this is what i wanted to make

#

but its pain in the abs to do it because i have to fill each field one by one

#

and i wanted to make something quicker and simple

rapid flare
#

ahh, this is for like an rp server thing right?

#

like i've seen gta rp before

#

so just trying to understand a bit

#

are you wanting to generate these payment recipts automatically?

solid sorrel
#

yea

rapid flare
#

how are you making them currently?

solid sorrel
#

thats supposed to be filled by rp players and im actually doing one by one manually

#

lets say that you are a pacient

#

you come in, i give you treatment and everything

#

after that you'll have to pay an amount of money accordinly to the treatment in this case was 1.500

#

then i wanted a tiny form

#

this is what im using rn

#

but im pretty sure people actually use this in their professional life 😂

rapid flare
#

haha that is interesting

solid sorrel
#

what i do is fill up with the info that is crucial to continue with the rp

#

and i just edit it using the html editor

#

but as i said, pain in the abs

rapid flare
#

so my only concern is that like, you're currently doing this stuff in C which is a bit hard to work with and make nice looking things

solid sorrel
#

i wanted something smaller and simpler

#

i tried with html but didnt work

#

do you have any ideas?

rapid flare
#

how does your rp server do stuff? via like discord or something?

solid sorrel
#

i think they do thru discord, yea

#

for example, images they host on discord or imgur, something like that

#

or a script that merges imgur and discord, idk exactly

rapid flare
#

Like I'd just envision this through a discord bot

#

I think python gives you a lot of flexibility

solid sorrel
#

but theres no need tbh because i just want an img like that to send to players

solid sorrel
# solid sorrel

they get the print fine the only problem is that its boring to do this everytime

#

i wanted something like that devcpp that people use or even do with html because i can do some css and we golden

#

but im not familiarized with html neither

#

what i wanted was
your name
your passport
pacient name
pacient passport
value they have to pay

after that the same message that shows up in a cool css div or something with the info provided in those fields

#

bla bla bla awaiting payment of user of passport number and my name n value printed too

#

ive tried to copy that websites code and tried to mess with it a bit to see if i could make my own form but that html code is tooooo advanced for me

#

i cant freaking understand none of that 😂

solid sorrel
#

bruh this is so stupdi

#

i simply cannot xD

solid sorrel
#

@rapid flare im getting there!

#

switched to python to see if i could make something out of it alone

#

and i gotta tell you.. i have no fkn clue what im doing im just going thru lmao

#

but tbf if i can make something as simple as this and toss some cool css in there bruh im all for it

#

i really just need something this stupid with some background and im good

#

i want something like this

#

my next goal is to figure out how to print my 'value' both as integer number at the corner and at the same time as written number and fix bugs