Help mysql problem
#1

Help me i don't know in what i have problem because when i execute cmd then this cmd don't do a new house in the table from the console i have this while i use cmd
sscanf warning: Strings without a length are deprecated please add a destination size
pastebin:http://pastebin.com/ZdkLi6ZM
Reply
#2

I'm new to MySQL so.. I'm not sure. Try this:
PHP код:
        format(Query,sizeof(Query),"INSERT INTO `houses` (`name`,`cost`,`czynsz`,`house_outX`,`house_outY`,`house_outZ`,`house_inX`,`house_inY`,`house_inZ`,`house_inInt`,`house_inVW`) VALUES ('%s',%d,%d,%f,%f,%f,%f,%f,%f,%d,%d)",nazwa,Cost,Czynsz,outX,outY,outZ,IntX,IntY,IntZ,interior,intVW);
        
mysql_query(Query); 
Reply
#3

That's because "s" specifier in sscanf needs a size specified in square brackets such "ddfffdds[65]".

You probably can find better methods than re-loading the houses every time a house is created/deleted though.
Reply
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
That's because "s" specifier in sscanf needs a size specified in square brackets such "ddfffdds[65]".

You probably can find better methods than re-loading the houses every time a house is created/deleted though.
Thank you :V i missed this stupid error
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)