MySQL R39-4 (Loading Interiors)
#6

It looks fine, to be honest. You could make it look neater by aligning all the "=" symbols and by splitting the Create functions over multiple lines. White-space has no influence on the code whatsoever. I regularly space things out like this:
PHP код:
InteriorCP[intid] = CreateDynamicCP(
    
INTInfo[intid][INTCPOutX],     // x
    
INTInfo[intid][INTCPOutY],     // y
    
INTInfo[intid][INTCPOutZ],     // z
    
1.5,                         // size
    
0,                             // worldid
    
0,                             // interiorid
    
-1,                         // playerid
    
20                            // streamdistance
); 
What you could still do, however, is splitting off all the actual game interiors. Like if you have a bunch of houses that all use the same "burglary house 1" interior then you could split those off into another table. You could then state that houses 7, 15 and 37 all use "burglary house 1" without needing to repeat those coordinates again.

Edit:
Quote:
Originally Posted by Jefff
Посмотреть сообщение
I think better usage should be
pawn Код:
mysql_tquery(ConnectionHandle, "SELECT * FROM interiors", "LoadInteriorData");
then in loop all rows
I didn't even notice that giant flaw. Sharp eye.
Reply


Messages In This Thread
MySQL R39-4 (Loading Interiors) - by Juvanii - 02.01.2016, 23:23
Re: MySQL R39-4 (Loading Interiors) - by Juvanii - 15.01.2016, 20:39
Re: MySQL R39-4 (Loading Interiors) - by Yousha - 15.01.2016, 21:19
Re: MySQL R39-4 (Loading Interiors) - by Juvanii - 15.01.2016, 21:49
Re: MySQL R39-4 (Loading Interiors) - by Jefff - 15.01.2016, 21:57
Re: MySQL R39-4 (Loading Interiors) - by Vince - 15.01.2016, 22:04
Re: MySQL R39-4 (Loading Interiors) - by Juvanii - 16.01.2016, 12:22

Forum Jump:


Users browsing this thread: 2 Guest(s)