In search of advice
#5

Quote:
Originally Posted by justinnater
Посмотреть сообщение
Alrighty let me point a few things out:

Код:
new amount[20];
You are using amount as integers only so you shouldn't place [20] behind it becouse thats how you would define it as a string (inb4 array).
So remove all the [...] after all 'amount' variables and dont forget to remove it from the sscanf lines aswell! (Now you also dont need to format that variable to display it.)
Hey,

Thanks for the quick reply. This is exactly the kind of response I am looking for.
How would my sscanf statement look like if I do like you say? Perhaps "s[20]s[20]dd"?

PHP код:
if(strcmp(type"savings") == 0
About the 'strcmp', shouldn't I define the string length?

Thanks
Reply


Messages In This Thread
In search of advice - by Josh_Lotus - 08.01.2016, 13:17
Re: In search of advice - by Rufio - 08.01.2016, 13:27
Re: In search of advice - by Josh_Lotus - 08.01.2016, 13:31
Re: In search of advice - by justinnater - 08.01.2016, 13:42
Re: In search of advice - by Josh_Lotus - 08.01.2016, 13:53
Re: In search of advice - by PrO.GameR - 08.01.2016, 14:08

Forum Jump:


Users browsing this thread: 1 Guest(s)